projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c727040
)
NVMe: Remove check for null
author
Keith Busch
<keith.busch@intel.com>
Tue, 7 Apr 2015 21:48:26 +0000
(15:48 -0600)
committer
Jens Axboe
<axboe@fb.com>
Wed, 8 Apr 2015 01:10:51 +0000
(19:10 -0600)
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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/nvme-core.c
b/drivers/block/nvme-core.c
index 9052553eda65eca4253cddd9414209809e0cd242..973c895bd7afdcaecabf95814ed41a16a0c436ae 100644
(file)
--- a/
drivers/block/nvme-core.c
+++ b/
drivers/block/nvme-core.c
@@
-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);