projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92394b5
)
mtd: s3c2410 nand: Remove uncessary null check
author
Jonghwan Choi
<jhbird.choi@samsung.com>
Thu, 21 Jul 2011 06:33:58 +0000
(15:33 +0900)
committer
Artem Bityutskiy
<artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:17 +0000
(15:02 +0300)
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>
drivers/mtd/nand/s3c2410.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/s3c2410.c
b/drivers/mtd/nand/s3c2410.c
index
b0f8e77
..
868685d
100644
(file)
--- 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);
}