Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
Vinod Koul
2c17e9ea 9fc2f03e

+1 -2
+1 -2
drivers/dma/idxd/init.c
··· 912 912 913 913 idxd->rdbuf_limit = idxd_saved->saved_idxd.rdbuf_limit; 914 914 915 - if (saved_evl) 916 - idxd->evl->size = saved_evl->size; 915 + idxd->evl->size = saved_evl->size; 917 916 918 917 for (i = 0; i < idxd->max_groups; i++) { 919 918 struct idxd_group *saved_group, *group;