diff options
author | Keith Busch <keith.busch@intel.com> | 2015-04-07 17:48:26 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-04-07 21:10:51 -0400 |
commit | 447228023eaa8c96a48a8a459be7a992008df830 (patch) | |
tree | 1e5691c18008d2d208ead46f2ec61e7a48c6d0d0 | |
parent | c727040bdaa28cd7aa9dbc086eee7b236e0fb270 (diff) |
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>
-rw-r--r-- | drivers/block/nvme-core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index 9052553eda65..973c895bd7af 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c | |||
@@ -517,8 +517,6 @@ static void nvme_dif_remap(struct request *req, | |||
517 | return; | 517 | return; |
518 | 518 | ||
519 | pmap = kmap_atomic(bip->bip_vec->bv_page) + bip->bip_vec->bv_offset; | 519 | pmap = kmap_atomic(bip->bip_vec->bv_page) + bip->bip_vec->bv_offset; |
520 | if (!pmap) | ||
521 | return; | ||
522 | 520 | ||
523 | p = pmap; | 521 | p = pmap; |
524 | virt = bip_get_seed(bip); | 522 | virt = bip_get_seed(bip); |