Colin Ian King
757ec116c9
spi: npcm: fix u32 csgpio being checked for less than zero
...
The u32 variable csgpio is being checked for an error return
from the call to of_get_named_gpio, however, since this is unsigned
this comparison will always be false. Fix this by making csgpio an
int and fix up the %u format specifiers to %d accordingly.
Detected by CoverityScan, CID#1475476 ("Unsigned compared against 0")
Fixes: 2a22f1b30cee ("spi: npcm: add NPCM PSPI controller driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-11-14 14:02:33 -08:00
..
2018-04-23 15:48:18 +01:00
2018-11-13 12:01:22 -08:00
2018-11-13 12:01:22 -08:00
2017-08-16 11:53:31 +01:00
2018-01-26 17:57:24 +00:00
2018-09-11 11:43:07 +01:00
2018-08-01 14:50:24 +01:00
2018-09-05 12:38:27 +01:00
2017-10-31 11:15:10 +00:00
2018-09-18 09:16:34 -07:00
2017-08-08 11:36:35 +01:00
2016-02-15 20:43:39 +00:00
2018-05-04 08:09:02 +09:00
2018-10-11 15:00:34 +01:00
2016-09-24 20:03:25 +01:00
2017-11-02 11:10:55 +01:00
2018-08-01 14:50:28 +01:00
2016-09-14 18:03:32 +01:00
2018-08-01 14:50:24 +01:00
2018-07-11 15:34:53 +01:00
2016-07-24 21:54:29 +01:00
2016-08-24 12:37:43 +01:00
2016-07-24 21:54:29 +01:00
2017-11-02 11:10:55 +01:00
2016-07-07 11:44:43 +02:00
2018-09-18 10:40:34 -07:00
2016-04-26 11:56:09 +01:00
2018-02-12 12:04:16 +00:00
2018-10-11 15:11:04 +01:00
2016-05-11 18:26:19 +01:00
2018-10-11 15:11:04 +01:00
2018-10-11 15:11:04 +01:00
2018-10-09 00:11:28 +01:00
2017-09-01 11:33:22 +01:00
2015-12-22 17:12:56 -06:00
2018-11-05 11:53:28 +00:00
2018-09-05 12:38:27 +01:00
2016-11-14 11:21:48 +00:00
2018-10-10 12:41:36 +01:00
2017-04-26 15:58:04 +01:00
2018-11-05 11:53:52 +00:00
2018-10-21 17:00:14 +01:00
2018-07-30 16:31:54 +01:00
2018-10-12 18:54:02 +02:00
2016-09-24 20:03:25 +01:00
2018-03-18 17:57:42 -07:00
2017-04-26 15:58:04 +01:00
2018-08-01 14:50:24 +01:00
2017-07-26 13:08:56 +01:00
2016-02-26 11:06:38 +09:00
2018-09-27 23:29:57 +01:00
2018-05-02 05:59:21 +09:00
2016-09-12 20:11:39 +01:00
2016-07-03 14:23:25 +02:00
2018-04-27 12:05:39 +01:00
2018-11-06 19:08:00 +00:00
2018-11-05 11:55:06 +00:00
2018-05-03 10:27:43 +09:00
2018-11-14 14:02:33 -08:00
2018-06-12 16:19:22 -07:00
2018-10-19 13:32:59 +01:00
2018-09-03 15:14:18 +01:00
2018-10-17 11:11:32 +01:00
2018-09-20 18:11:22 -07:00
2018-11-13 10:05:49 -08:00
2017-01-17 18:34:25 +00:00
2018-04-17 17:11:30 +01:00
2017-01-23 18:09:37 +00:00
2018-11-13 10:02:27 -08:00
2018-11-13 10:02:09 -08:00
2018-10-11 15:11:09 +01:00
2017-08-10 15:50:23 +01:00
2018-10-10 12:48:06 +01:00
2018-11-05 11:42:43 +00:00
2018-11-05 11:54:50 +00:00
2018-05-17 13:27:08 +09:00
2017-02-22 10:50:09 -08:00
2018-08-28 20:32:00 +01:00
2018-11-05 11:54:20 +00:00
2018-08-01 14:50:24 +01:00
2018-08-28 20:32:00 +01:00
2018-01-03 11:38:46 +00:00
2018-09-28 14:29:14 +01:00
2018-10-03 16:23:10 +01:00
2017-05-26 13:12:04 +01:00
2018-06-26 13:52:27 -07:00
2018-09-27 23:26:43 +01:00
2017-05-26 12:41:07 +01:00
2018-10-19 13:32:56 +01:00
2018-04-17 11:46:23 +01:00
2017-12-07 11:59:15 +00:00
2017-12-07 17:45:17 +00:00
2017-07-19 17:06:31 +01:00
2018-09-03 12:23:41 +01:00
2017-10-09 10:16:38 +01:00
2017-03-17 21:54:08 +00:00
2018-05-17 13:36:00 +09:00
2017-01-17 18:38:02 +00:00
2016-08-18 19:10:39 +01:00
2018-08-02 11:08:06 +01:00
2017-11-27 16:31:20 +00:00
2017-08-08 11:36:07 +01:00
2018-08-01 14:50:24 +01:00
2018-11-05 11:54:35 +00:00
2018-11-13 10:01:23 -08:00
2018-10-10 13:46:54 +01:00