Commit 2c17e9ea authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul
Browse files

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: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarFenghua Yu <fenghua.yu@intel.com>
Link: https://lore.kernel.org/r/ec38214e-0bbb-4c5a-94ff-b2b2d4c3f245@stanley.mountain


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 9fc2f03e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -912,7 +912,6 @@ 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;

	for (i = 0; i < idxd->max_groups; i++) {