Skip to content

Commit

Permalink
mtd: s3c2410 nand: Remove uncessary null check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonghwan Choi authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 92394b5 commit 4aa1062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/s3c2410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4aa1062

Please sign in to comment.