Skip to content

Commit 23cbd4e

Browse files
author
Russell King
committed
ARM: cleanup: clk_get_sys() error handling
Fix clk_get_sys() error handling; IS_ERR() should be used rather than IS_ERR_OR_NULL() to check for errors. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent f863440 commit 23cbd4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/mach-tegra/tegra2_emc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static struct tegra_emc_pdata *tegra_emc_fill_pdata(struct platform_device *pdev
276276
int i;
277277

278278
WARN_ON(pdev->dev.platform_data);
279-
BUG_ON(IS_ERR_OR_NULL(c));
279+
BUG_ON(IS_ERR(c));
280280

281281
pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL);
282282
pdata->tables = devm_kzalloc(&pdev->dev, sizeof(*pdata->tables),

0 commit comments

Comments
 (0)