Skip to content

Commit 2c17e9e

Browse files
Dan Carpentervinodkoul
authored andcommitted
dmaengine: idxd: Delete unnecessary NULL check
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>
1 parent 9fc2f03 commit 2c17e9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/dma/idxd/init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,7 @@ static void idxd_device_config_restore(struct idxd_device *idxd,
912912

913913
idxd->rdbuf_limit = idxd_saved->saved_idxd.rdbuf_limit;
914914

915-
if (saved_evl)
916-
idxd->evl->size = saved_evl->size;
915+
idxd->evl->size = saved_evl->size;
917916

918917
for (i = 0; i < idxd->max_groups; i++) {
919918
struct idxd_group *saved_group, *group;

0 commit comments

Comments
 (0)