sh-pfc: Use PTR_ERR_OR_ZERO() to simplify the code
[deliverable/linux.git] / drivers / pinctrl / sh-pfc / pinctrl.c
index d4e65bc7dacd67b5ed3b1de76efd6d4e1a4a78e2..e208ee04a9f45482044606bc509c70ec5170c4cb 100644 (file)
@@ -814,8 +814,5 @@ int sh_pfc_register_pinctrl(struct sh_pfc *pfc)
        pmx->pctl_desc.npins = pfc->info->nr_pins;
 
        pmx->pctl = devm_pinctrl_register(pfc->dev, &pmx->pctl_desc, pmx);
-       if (IS_ERR(pmx->pctl))
-               return PTR_ERR(pmx->pctl);
-
-       return 0;
+       return PTR_ERR_OR_ZERO(pmx->pctl);
 }
This page took 0.024241 seconds and 5 git commands to generate.