skd: Simplify the code for deciding whether or not to send a FIT msg
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:13:05 +0000 (13:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:45:29 +0000 (08:45 -0600)
commitfe4fd7235a0cfc7a98139068f6ce82ee3d813684
tree00c4528f803a9c6a1cac1567d29688daeb666266
parent19fc85cfa2b4887b99f146c894ff0b9ba875246a
skd: Simplify the code for deciding whether or not to send a FIT msg

Due to the previous patch it is guaranteed that the FIT msg contains
at least one request after the for-loop has finished. Use this to
simplify the code.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/skd_main.c