]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] Redundant this_count check in sd_init_command()
authorChen, Kenneth W <kenneth.w.chen@intel.com>
Tue, 12 Jul 2005 22:57:13 +0000 (15:57 -0700)
committerJames Bottomley <jejb@mulgrave.(none)>
Thu, 14 Jul 2005 15:25:17 +0000 (11:25 -0400)
commit7fce2cf62e4bd9c24717009865ac00940cb664b8
tree4868666a6031372d9ad2301b170fef35540dc0ae
parent0f34e3f53378a11c9ecba0f8165da50e8b01d53f
[SCSI] Redundant this_count check in sd_init_command()

I was going over the scsi I/O submit path, when sd_init_command
construct the scsi command, this_count is already checked in the
previous else if clause.  Why does it need to check it again in
the last else block?

Patch to delete the spurious check.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/sd.c