diff options
author | Igor Stoppa <igor.stoppa@gmail.com> | 2018-08-31 00:34:25 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-08-31 11:29:12 +0200 |
commit | 27d91e80d53f5b9343b53fb5441d1c8816d6b3d9 (patch) | |
tree | 9adab827d7d9d5deaa6491544d584dc7ff4d820a /drivers/pinctrl/aspeed | |
parent | pinctrl: lewisburg: Define PM ops via INTEL_PINCTRL_PM_OPS() (diff) | |
download | linux-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.c | 2 |
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; |