projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fc2f03
)
dmaengine: idxd: Delete unnecessary NULL check
author
Dan Carpenter
<dan.carpenter@linaro.org>
Wed, 8 Jan 2025 09:13:20 +0000
(12:13 +0300)
committer
Vinod Koul
<vkoul@kernel.org>
Mon, 10 Feb 2025 14:27:51 +0000
(19:57 +0530)
The "saved_evl" pointer is a offset into the middle of a non-NULL struct.
It can't be NULL and the check is slightly confusing. Delete the check.
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Fenghua Yu <fenghua.yu@intel.com>
Link:
https://lore.kernel.org/r/ec38214e-0bbb-4c5a-94ff-b2b2d4c3f245@stanley.mountain
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/init.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/idxd/init.c
b/drivers/dma/idxd/init.c
index b946f78f85e17fd23a52b717051995ebd5548c9d..fca1d29249998d9238550681feb86162454fd6d7 100644
(file)
--- a/
drivers/dma/idxd/init.c
+++ b/
drivers/dma/idxd/init.c
@@
-912,8
+912,7
@@
static void idxd_device_config_restore(struct idxd_device *idxd,
idxd->rdbuf_limit = idxd_saved->saved_idxd.rdbuf_limit;
- if (saved_evl)
- idxd->evl->size = saved_evl->size;
+ idxd->evl->size = saved_evl->size;
for (i = 0; i < idxd->max_groups; i++) {
struct idxd_group *saved_group, *group;