Colin Ian King
7a52127e3c
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>
2018-09-26 09:43:01 +02:00
..
2018-08-14 12:31:27 -07:00
2018-08-31 11:29:12 +02:00
2018-07-14 12:47:04 +02:00
2018-08-29 14:05:36 +02:00
2018-08-29 10:44:27 +02:00
2018-09-20 15:45:14 -07:00
2018-09-25 12:45:47 +02:00
2018-09-26 09:43:01 +02:00
2018-09-14 15:10:57 +02:00
2018-09-14 15:10:57 +02:00
2018-09-14 15:10:57 +02:00
2018-08-29 10:28:42 +02:00
2017-11-30 14:42:04 +01:00
2018-09-26 09:43:01 +02:00
2018-09-14 15:10:57 +02:00
2018-08-30 14:17:20 +02:00
2018-09-14 15:10:57 +02:00
2018-09-14 15:10:57 +02:00
2018-07-07 17:52:26 +02:00
2018-08-29 14:05:36 +02:00
2018-09-21 09:17:27 -07:00
2018-09-20 08:15:16 -07:00
2018-08-29 14:05:36 +02:00
2018-08-29 10:50:12 +02:00
2018-09-14 15:10:57 +02:00
2018-06-12 16:19:22 -07:00
2018-07-17 10:48:25 +02:00
2018-07-17 10:49:49 +02:00
2018-07-10 17:22:35 +02:00
2017-01-03 09:26:16 +01:00
2018-08-29 14:10:34 +02:00
2018-08-29 10:28:42 +02:00
2017-11-08 13:49:45 +01:00
2017-08-14 15:01:59 +02:00
2017-08-14 15:01:02 +02:00
2018-09-14 15:10:57 +02:00
2018-07-29 22:20:15 +02:00
2018-03-01 17:04:09 +01:00
2018-09-14 15:10:57 +02:00
2018-09-14 12:49:19 +02:00
2018-09-14 15:10:57 +02:00
2014-10-29 09:28:35 +01:00
2018-08-10 23:12:43 +02:00
2018-09-14 15:10:57 +02:00
2017-11-02 11:10:55 +01:00
2017-01-26 15:27:54 +01:00
2018-09-14 15:10:57 +02:00
2018-09-14 15:10:57 +02:00
2018-06-26 09:51:42 +02:00
2018-08-29 13:39:54 +02:00
2018-08-29 14:05:36 +02:00
2016-12-30 09:17:02 +01:00
2018-08-29 13:47:16 +02:00
2017-11-08 13:49:57 +01:00
2018-09-14 15:10:57 +02:00
2018-08-06 13:00:17 +02:00
2017-11-08 14:06:21 +01:00
2018-01-03 08:46:49 +01:00
2017-11-08 14:06:21 +01:00
2016-02-05 23:54:47 +01:00
2018-09-14 15:10:57 +02:00
2017-08-21 08:54:46 +01:00
2018-09-14 15:10:57 +02:00
2018-08-29 14:05:36 +02:00
2018-08-29 14:05:36 +02:00
2018-08-29 14:05:36 +02:00
2018-01-18 11:04:47 +01:00
2017-08-22 14:41:40 +02:00
2018-07-07 17:52:26 +02:00
2018-01-03 08:46:53 +01:00
2016-04-01 15:06:36 +02:00
2018-06-12 16:19:22 -07:00
2017-08-14 15:01:01 +02:00
2018-07-17 10:48:47 +02:00
2018-07-17 10:49:49 +02:00