[SCSI] usb-storage: do not increment cmd->serial_number
authorChristoph Hellwig <hch@infradead.org>
Mon, 4 Apr 2011 13:42:22 +0000 (09:42 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 1 May 2011 15:23:09 +0000 (10:23 -0500)
The isd200 sub-driver increments the command serial number despite not
using it at all in it's routine for sending internal scsi commands.
Remove the increment to prepare for removing the serial_number field.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/usb/storage/isd200.c

index 09e52ba47ddf5274a3bc3ccc6f8fa446275172c5..ffc4193e9505fbaac69afcc4c6fa42a21e8dbab7 100644 (file)
@@ -499,7 +499,6 @@ static int isd200_action( struct us_data *us, int action,
        memset(&ata, 0, sizeof(ata));
        srb->cmnd = info->cmnd;
        srb->device = &srb_dev;
-       ++srb->serial_number;
 
        ata.generic.SignatureByte0 = info->ConfigData.ATAMajorCommand;
        ata.generic.SignatureByte1 = info->ConfigData.ATAMinorCommand;