skd: Move skd_free_sg_list() up
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 17 Aug 2017 20:13:30 +0000 (13:13 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 18 Aug 2017 14:45:29 +0000 (08:45 -0600)
commit5d003240fdbaa59b6746f5d47b31da6864888205
treeaebc6e0239ead2194113a28f3346480396585a04
parent4e54b8492796fc9104141e60d0ed658df07bd518
skd: Move skd_free_sg_list() up

Issue a warning if a NULL argument is passed to skd_free_sg_list().
Move this function up to make the blk-mq conversion patch easier
to read.

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