]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: idxd: Delete unnecessary NULL check
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 8 Jan 2025 09:13:20 +0000 (12:13 +0300)
committerVinod Koul <vkoul@kernel.org>
Mon, 10 Feb 2025 14:27:51 +0000 (19:57 +0530)
commit2c17e9ea0caa5555e31e154fa1b06260b816f5cc
treef81dd45d23e06e9f811172ba3b541b1e652feb25
parent9fc2f03e85952ee52558ab844473a8284d924a56
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>
drivers/dma/idxd/init.c