mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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>
This commit is contained in:
parent
c727040bda
commit
447228023e
1 changed files with 0 additions and 2 deletions
|
|
@ -517,8 +517,6 @@ static void nvme_dif_remap(struct request *req,
|
|||
return;
|
||||
|
||||
pmap = kmap_atomic(bip->bip_vec->bv_page) + bip->bip_vec->bv_offset;
|
||||
if (!pmap)
|
||||
return;
|
||||
|
||||
p = pmap;
|
||||
virt = bip_get_seed(bip);
|
||||
|
|
|
|||
Loading…
Reference in a new issue