[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1650509390-26877-1-git-send-email-baihaowen@meizu.com>
Date: Thu, 21 Apr 2022 10:49:50 +0800
From: Haowen Bai <baihaowen@...zu.com>
To: Vinod Koul <vkoul@...nel.org>, Shawn Guo <shawnguo@...nel.org>,
"Sascha Hauer" <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>
CC: Haowen Bai <baihaowen@...zu.com>, <dmaengine@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>,
<linux-kernel@...r.kernel.org>
Subject: [PATCH] dmaengine: imx-sdma: Remove useless null check before call of_node_put()
No need to add null check before call of_node_put(), since the
implementation of of_node_put() has done it.
Signed-off-by: Haowen Bai <baihaowen@...zu.com>
---
drivers/dma/imx-sdma.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 6196a7b3956b..b8a1299b93f0 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1933,8 +1933,7 @@ static int sdma_event_remap(struct sdma_engine *sdma)
}
out:
- if (gpr_np)
- of_node_put(gpr_np);
+ of_node_put(gpr_np);
return ret;
}
--
2.7.4
Powered by blists - more mailing lists