devm_pinctrl_register returns an ERR_PTR in case of error and should
have an IS_ERR check instead of a null check.
The Coccinelle semantic patch used to make this change is as follows:
@@
expression e;
@@
e = devm_pinctrl_register(...);
if(
-!e
+IS_ERR(e)
)
{
<+...
return
-
On 15/08/16 05:57, Amitoj Kaur Chawla wrote:
> devm_pinctrl_register returns an ERR_PTR in case of error and should
> have an IS_ERR check instead of a null check.
>
> The Coccinelle semantic patch used to make this change is as follows:
> @@
> expression e;
> @@
>
> e = devm_pinctrl_register(