mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
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>
This commit is contained in:
parent
92394b5c2b
commit
4aa10626ad
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user