Skip to contentSkip to conversation

libata: use the WRITE_SAME_16 define

PATCH Applied Christoph Hellwig 2 participants 2 messages Dec 10, 2009 – Dec 17, 2009 libata

lore
Share & tools
lore
#0 lore raw

Now that the scsi tree has hit mainline we can use the newly added WRITE_SAME_16 define.

drivers/ata/libata-scsi.c +1 -1
Index: linux-2.6/drivers/ata/libata-scsi.c
===================================================================
@@ -3022,7 +3022,7 @@ static inline ata_xlat_func_t ata_get_xl
 	case WRITE_16:
 		return ata_scsi_rw_xlat;
 
-	case 0x93 /*WRITE_SAME_16*/:
+	case WRITE_SAME_16:
 		return ata_scsi_write_same_xlat;
 
 	case SYNCHRONIZE_CACHE:
Applied
#1 lore raw
Quoted 10 lines · Christoph Hellwig

Now that the scsi tree has hit mainline we can use the newly added WRITE_SAME_16 define.

Index: linux-2.6/drivers/ata/libata-scsi.c
===================================================================

drivers/ata/libata-scsi.c static inline ata_xlat_func_t ata_get_xl · line 3026

Quoted 6 lines
drivers/ata/libata-scsi.c +1 -1
@@ -3022,7 +3022,7 @@ static inline ata_xlat_func_t ata_get_xl
  	case WRITE_16:
  		return ata_scsi_rw_xlat;
 
-	case 0x93 /*WRITE_SAME_16*/:
+	case WRITE_SAME_16:
  		return ata_scsi_write_same_xlat;

applied