mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
pinctrl: samsung: Update error check for unsigned variables
Checking '< 0' for unsigned variables always returns false. For error codes, use IS_ERR_VALUE() instead. Acked-by: Linus Walleij <[email protected]> Signed-off-by: Tushar Behera <[email protected]> Signed-off-by: Kukjin Kim <[email protected]>
This commit is contained in:
parent
6edc794a5f
commit
4a991b410c
1 changed files with 1 additions and 1 deletions
|
|
@ -560,7 +560,7 @@ static int __devinit samsung_pinctrl_parse_dt_pins(struct platform_device *pdev,
|
|||
const char *pin_name;
|
||||
|
||||
*npins = of_property_count_strings(cfg_np, "samsung,pins");
|
||||
if (*npins < 0) {
|
||||
if (IS_ERR_VALUE(*npins)) {
|
||||
dev_err(dev, "invalid pin list in %s node", cfg_np->name);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue