[SCSI] hpsa: remove unneeded defines
authorMike Miller <mike.miller@hp.com>
Fri, 16 Apr 2010 18:28:41 +0000 (13:28 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 2 May 2010 15:02:17 +0000 (11:02 -0400)
This patch removes unnecessary #define's from hpsa. The SCSI midlayer
handles all this for us.

Signed-off-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/hpsa.c
drivers/scsi/hpsa_cmd.h

index 183d3a43c28041c54a3904e512a8d6eba9a77cbe..c016426b31b231fe94db696796ebe6cfe7b060f8 100644 (file)
@@ -2708,14 +2708,6 @@ static void fill_cmd(struct CommandList *c, u8 cmd, struct ctlr_info *h,
                        c->Request.CDB[8] = (size >> 8) & 0xFF;
                        c->Request.CDB[9] = size & 0xFF;
                        break;
-
-               case HPSA_READ_CAPACITY:
-                       c->Request.CDBLen = 10;
-                       c->Request.Type.Attribute = ATTR_SIMPLE;
-                       c->Request.Type.Direction = XFER_READ;
-                       c->Request.Timeout = 0;
-                       c->Request.CDB[0] = cmd;
-                       break;
                case HPSA_CACHE_FLUSH:
                        c->Request.CDBLen = 12;
                        c->Request.Type.Attribute = ATTR_SIMPLE;
index 56fb9827681e7d3884ae97c52fbc5cd8673f8180..78de9b6d1e0b2499b4a8d19850a02d93abc33330 100644 (file)
@@ -152,21 +152,6 @@ struct SenseSubsystem_info {
        u8 reserved1[1108];
 };
 
-#define HPSA_READ_CAPACITY 0x25 /* Read Capacity */
-struct ReadCapdata {
-       u8 total_size[4];       /* Total size in blocks */
-       u8 block_size[4];       /* Size of blocks in bytes */
-};
-
-#if 0
-/* 12 byte commands not implemented in firmware yet. */
-#define HPSA_READ      0xa8
-#define HPSA_WRITE     0xaa
-#endif
-
-#define HPSA_READ   0x28    /* Read(10) */
-#define HPSA_WRITE  0x2a    /* Write(10) */
-
 /* BMIC commands */
 #define BMIC_READ 0x26
 #define BMIC_WRITE 0x27