pinctrl: remove unnecessary unlikely()
WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa <igor.stoppa@huawei.com> Cc: Andrew Jeffery <andrew@aj.id.au> Cc: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
ae4610873f
commit
27d91e80d5
|
@ -715,7 +715,7 @@ int aspeed_pin_config_set(struct pinctrl_dev *pctldev, unsigned int offset,
|
|||
|
||||
pmap = find_pinconf_map(param, MAP_TYPE_ARG, arg);
|
||||
|
||||
if (unlikely(WARN_ON(!pmap)))
|
||||
if (WARN_ON(!pmap))
|
||||
return -EINVAL;
|
||||
|
||||
val = pmap->val << pconf->bit;
|
||||
|
|
Loading…
Reference in New Issue