NVMe: Remove check for null
authorKeith Busch <keith.busch@intel.com>
Tue, 7 Apr 2015 21:48:26 +0000 (15:48 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 8 Apr 2015 01:10:51 +0000 (19:10 -0600)
commit447228023eaa8c96a48a8a459be7a992008df830
tree1e5691c18008d2d208ead46f2ec61e7a48c6d0d0
parentc727040bdaa28cd7aa9dbc086eee7b236e0fb270
NVMe: Remove check for null

Checking fails static analysis due to additional arithmetic prior to
the NULL check. Mapping doesn't return NULL here anyway, so removing
the check.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c