From: Jonghwan Choi Date: Thu, 21 Jul 2011 06:33:58 +0000 (+0900) Subject: mtd: s3c2410 nand: Remove uncessary null check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4aa10626adbc27dcf2e3462bb82b4963c5545669;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mtd: s3c2410 nand: Remove uncessary null check clk_get() return a pointer to the struct clk or an ERR_PTR(). Signed-off-by: Jonghwan Choi Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c index b0f8e77834fe..868685db6712 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); }