]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dc395x: decrease iteration for tag_number of max_command in start_scsi()
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 11 Aug 2010 01:01:17 +0000 (18:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:00 +0000 (08:59 -0700)
commitd8187b945aa4ed9ea298518e3dac691ea09724e5
tree003fb86fa4b9e5b4419482263709689a63e11377
parent702a98c63355b74aec50897870eb1c89b5009cfb
dc395x: decrease iteration for tag_number of max_command in start_scsi()

The tag_number reaches dcb->max_command + 1 after the loop, but when
the tag_number equals dcb->max_command an error message is already
issued. The last iteration therefore appears obsolete.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Oliver Neukum <oliver@neukum.name>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/scsi/dc395x.c