]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: cleanup switch in scsi_adjust_queue_depth
authorDouglas Gilbert <dgilbert@interlog.com>
Mon, 7 Jul 2014 16:00:35 +0000 (18:00 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:07:45 +0000 (22:07 +0200)
commitcb23f912a906d023940b54b403a1b7d6bfb97416
tree6c4b3ae71009d59ef58c8daf10875b395deb098d
parentf1bea55d5afa371c311b61946c58b2cd4e78fb2d
scsi: cleanup switch in scsi_adjust_queue_depth

While checking what scsi_adjust_queue_depth() did I thought its switch
statement could be clearer:

   - remove redundant assignment (to sdev->queue_depth)
   - re-order cases (thus removing the fall-through)

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Robert Elliott <elliott@hp.com>
Tested-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/scsi.c