]> www.infradead.org Git - users/dwmw2/linux.git/commit
dmaengine: xilinx: xdma: remove redundant check on ret
authorColin Ian King <colin.i.king@gmail.com>
Thu, 7 Nov 2024 11:46:56 +0000 (11:46 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Dec 2024 16:56:37 +0000 (22:26 +0530)
commit0f31c0912286f84b34b15e39b286db8f4765ced8
treee8502403b3381ee906d7d1da801f1633b018579f
parentbf9b0834552e615b1dbd3015c2f0ed2a3bdf62a4
dmaengine: xilinx: xdma: remove redundant check on ret

The variable ret is being checked for an error and returning ret
and the following statement returns ret too. The if check is
redundant, and remove it. Just return the value returned from
the call to regmap_write.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20241107114656.17611-1-colin.i.king@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/xilinx/xdma.c