ARM: OMAP2+: Cocci spatch "ptr_ret.spatch"
Cocci spatch "ptr_ret.spatch" Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Acked-by: Kevin Hilman <khilman@linaro.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
此提交包含在:
@@ -66,7 +66,7 @@ static int __init omap3_l3_init(void)
|
||||
|
||||
WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
|
||||
|
||||
return IS_ERR(pdev) ? PTR_ERR(pdev) : 0;
|
||||
return PTR_RET(pdev);
|
||||
}
|
||||
omap_postcore_initcall(omap3_l3_init);
|
||||
|
||||
@@ -100,7 +100,7 @@ static int __init omap4_l3_init(void)
|
||||
|
||||
WARN(IS_ERR(pdev), "could not build omap_device for %s\n", oh_name);
|
||||
|
||||
return IS_ERR(pdev) ? PTR_ERR(pdev) : 0;
|
||||
return PTR_RET(pdev);
|
||||
}
|
||||
omap_postcore_initcall(omap4_l3_init);
|
||||
|
||||
|
新增問題並參考
封鎖使用者