Skip to content
Commit eda38ce4 authored by Colin Ian King's avatar Colin Ian King Committed by Vinod Koul
Browse files

dmaengine: dw-axi-dmac: remove redundant null check on desc



The pointer desc is being null checked twice, the second null check
is redundant because desc has not been re-assigned between the
checks. Remove the redundant second null check on desc.

Fixes: ef6fb2d6 ("dmaengine: dw-axi-dmac: simplify descriptor management")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Tested-by: default avatarSia Jee Heng <jee.heng.sia@intel.com>
Reviewed-by: default avatarSia Jee Heng <jee.heng.sia@intel.com>
Addresses-Coverity: ("Logically dead code")
Link: https://lore.kernel.org/r/20210203134652.22618-1-colin.king@canonical.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent ba61c369
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment