Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 44722802 authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent c727040b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);