summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/aspeed
diff options
context:
space:
mode:
authorIgor Stoppa <igor.stoppa@gmail.com>2018-08-31 00:34:25 +0200
committerLinus Walleij <linus.walleij@linaro.org>2018-08-31 11:29:12 +0200
commit27d91e80d53f5b9343b53fb5441d1c8816d6b3d9 (patch)
tree9adab827d7d9d5deaa6491544d584dc7ff4d820a /drivers/pinctrl/aspeed
parentpinctrl: lewisburg: Define PM ops via INTEL_PINCTRL_PM_OPS() (diff)
downloadlinux-27d91e80d53f5b9343b53fb5441d1c8816d6b3d9.tar.xz
linux-27d91e80d53f5b9343b53fb5441d1c8816d6b3d9.zip
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>
Diffstat (limited to 'drivers/pinctrl/aspeed')
-rw-r--r--drivers/pinctrl/aspeed/pinctrl-aspeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/aspeed/pinctrl-aspeed.c b/drivers/pinctrl/aspeed/pinctrl-aspeed.c
index aefe3c33dffd..eb87ab774269 100644
--- a/drivers/pinctrl/aspeed/pinctrl-aspeed.c
+++ b/drivers/pinctrl/aspeed/pinctrl-aspeed.c
@@ -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;