]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dw-axi-dmac: remove redundant null check on desc
authorColin Ian King <colin.king@canonical.com>
Wed, 3 Feb 2021 13:46:52 +0000 (13:46 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 Feb 2021 12:09:39 +0000 (17:39 +0530)
commit014668ef756a8839fbecb7e05e13a2439525620d
treec5f3623acf0596455d27aa8b08fde1c1cd4fd70a
parent31d059a13046cbfabb1d131be9da2d930c6641c7
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: 4b913c5a1e13 ("dmaengine: dw-axi-dmac: simplify descriptor management")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Tested-by: Sia Jee Heng <jee.heng.sia@intel.com>
Reviewed-by: Sia 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: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c