]> git.baikalelectronics.ru Git - kernel.git/commit
NVMe: silence warning about unused 'dev'
authorJens Axboe <axboe@fb.com>
Tue, 12 Apr 2016 22:11:11 +0000 (16:11 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 12 Apr 2016 22:11:11 +0000 (16:11 -0600)
commit76e6d8fb761f8b8049899e5d6180ccdf485f8759
tree05641b4f0591f17962e12f814e6698439cc0e218
parentfb4ebea89d242e6c7b1038f353af17b81e1627d2
NVMe: silence warning about unused 'dev'

Depending on options, we might not be using dev in nvme_cancel_io():

drivers/nvme/host/pci.c: In function ‘nvme_cancel_io’:
drivers/nvme/host/pci.c:970:19: warning: unused variable ‘dev’ [-Wunused-variable]
  struct nvme_dev *dev = data;
                   ^

So get rid of it, and just cast for the dev_dbg_ratelimited() call.

Fixes: a7c7acd39482 ("nvme: Use blk-mq helper for IO termination")
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/pci.c