summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorJonghwan Choi <jhbird.choi@samsung.com>2011-07-21 08:33:58 +0200
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 14:02:17 +0200
commit4aa10626adbc27dcf2e3462bb82b4963c5545669 (patch)
treeef66b79aecbb99caae85a5aee38d46df806ac0e0 /drivers/mtd
parentmtd: spelling fixes (diff)
downloadlinux-4aa10626adbc27dcf2e3462bb82b4963c5545669.tar.xz
linux-4aa10626adbc27dcf2e3462bb82b4963c5545669.zip
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 <jhbird.choi@samsung.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/s3c2410.c2
1 files changed, 1 insertions, 1 deletions
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);
}