From patchwork Thu Jul 21 06:33:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: mtd: s3c2410 nand: Remove uncessary null check Date: Wed, 20 Jul 2011 20:33:58 -0000 From: jhbird.choi@samsung.com X-Patchwork-Id: 105984 Message-Id: <1311230038-6111-1-git-send-email-jhbird.choi@samsung.com> To: linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Kukjin Kim , Jonghwan Choi From: Jonghwan Choi clk_get() return a pointer to the struct clk or an ERR_PTR(). Signed-off-by: Jonghwan Choi --- drivers/mtd/nand/s3c2410.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index 4405468..18ff2f5 100644 --- a/drivers/mtd/nand/s3c2410.c +++ b/drivers/mtd/nand/s3c2410.c @@ -723,7 +723,7 @@ static int s3c24xx_nand_remove(struct platform_device *pdev) /* free the common resources */ - if (info->clk != NULL && !IS_ERR(info->clk)) { + if (!IS_ERR(info->clk)) { s3c2410_nand_clk_set_state(info, CLOCK_DISABLE); clk_put(info->clk); }