diff options
| author | Colin Ian King <colin.king@canonical.com> | 2018-09-25 10:55:56 +0100 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2018-09-26 09:43:01 +0200 |
| commit | 7a52127e3cf170ae71dadefef4ec82fb600cde2d (patch) | |
| tree | 8b546d35b60e7826b011f2b3cadca8c0f827465e /include/linux/debugobjects.h | |
| parent | 22eb8301dbc1d0c916c9b826094e4d7562e1491e (diff) | |
| download | cachepc-linux-7a52127e3cf170ae71dadefef4ec82fb600cde2d.tar.gz cachepc-linux-7a52127e3cf170ae71dadefef4ec82fb600cde2d.zip | |
pinctrl: mediatek: fix check on EINT_NA comparison
Currently, the check on desc->eint.eint_n == EINT_NA is always false
because this is comparing a u16 to -1 which can never be true. Fix
this by casting EINT_NA to u16.
Detected by CoverityScan, CID#1473610 ("Operands don't affect result")
Fixes: fb5fa8dc151b ("pinctrl: mediatek: extend struct mtk_pin_desc to pinctrl-mtk-common-v2.c")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
