From: Jonghwan Choi Date: Thu, 21 Jul 2011 06:33:58 +0000 (+0900) Subject: mtd: s3c2410 nand: Remove uncessary null check X-Git-Tag: next-20110818~40^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f4bca0c9df1ad5c3bed0fe23d526f6b277fae614;p=karo-tx-linux.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); }