]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit907c3128109895e1d1fc94fe940864cfc26a5427
tree00c4528f803a9c6a1cac1567d29688daeb666266
parentccd4c30b5036bedec24e1f0d7b539cebdfbe1e48
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