Arnd Bergmann
e320bb0e01
HID: intel-ish-hid: avoid bogus uninitialized-variable warning
...
[ Upstream commit 0b66fb3e6b ]
Older compilers like gcc-4.8 don't see that the variable is
initialized when it is used:
In file included from include/linux/compiler_types.h:68:0,
from <command-line>:0:
drivers/hid/intel-ish-hid/ishtp-fw-loader.c: In function 'load_fw_from_host':
include/linux/compiler-gcc.h:75:45: warning: 'fw_info.ldr_capability.max_dma_buf_size' may be used uninitialized in this function [-Wmaybe-uninitialized]
#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
^
drivers/hid/intel-ish-hid/ishtp-fw-loader.c:770:22: note: 'fw_info.ldr_capability.max_dma_buf_size' was declared here
struct shim_fw_info fw_info;
^
Make sure to initialize it before returning an error from ish_query_loader_prop().
Fixes: 91b228107d ("HID: intel-ish-hid: ISH firmware loader client driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com >
Signed-off-by: Jiri Kosina <jkosina@suse.cz >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2020-06-24 17:50:23 +02:00
..
2020-06-22 09:30:54 +02:00
2019-10-23 06:26:33 -04:00
2020-03-25 08:25:50 +01:00
2020-04-17 10:50:22 +02:00
2020-02-24 08:36:36 +01:00
2019-09-17 16:22:26 -07:00
2020-06-10 20:24:57 +02:00
2019-09-13 16:44:49 +03:00
2020-06-24 17:50:15 +02:00
2020-06-22 09:31:18 +02:00
2020-04-17 10:49:56 +02:00
2020-01-04 19:18:25 +01:00
2020-06-17 16:40:36 +02:00
2020-06-24 17:50:23 +02:00
2020-06-22 09:30:55 +02:00
2020-05-02 08:48:44 +02:00
2020-06-17 16:40:33 +02:00
2020-06-22 09:31:10 +02:00
2020-06-22 09:31:07 +02:00
2020-05-27 17:46:48 +02:00
2020-05-10 10:31:34 +02:00
2020-05-27 17:46:43 +02:00
2020-05-06 08:15:01 +02:00
2020-06-22 09:31:20 +02:00
2020-04-08 09:08:43 +02:00
2020-01-09 10:20:06 +01:00
2020-06-24 17:50:21 +02:00
2020-04-29 16:33:22 +02:00
2019-12-31 16:45:09 +01:00
2020-06-22 09:31:20 +02:00
2020-06-24 17:50:22 +02:00
2020-06-22 09:31:08 +02:00
2019-08-27 19:03:08 +02:00
2020-06-24 17:50:23 +02:00
2019-09-22 12:02:21 -07:00
2020-06-22 09:31:00 +02:00
2020-06-22 09:31:19 +02:00
2020-06-24 17:50:15 +02:00
2020-06-24 17:50:12 +02:00
2019-08-27 09:43:59 +02:00
2020-02-24 08:36:53 +01:00
2019-08-28 11:29:32 +02:00
2020-06-24 17:50:12 +02:00
2020-06-24 17:50:20 +02:00
2020-06-24 17:50:12 +02:00
2019-12-17 19:55:39 +01:00
2020-06-03 08:21:28 +02:00
2020-05-27 17:46:47 +02:00
2020-04-23 10:36:20 +02:00
2019-10-28 13:33:41 -07:00
2020-04-23 10:36:37 +02:00
2019-09-05 13:17:01 -06:00
2020-06-22 09:31:22 +02:00
2020-01-04 19:18:30 +01:00
2020-06-24 17:50:13 +02:00
2020-06-22 09:31:19 +02:00
2020-01-17 19:48:59 +01:00
2019-10-09 11:08:03 +02:00
2020-01-23 08:22:35 +01:00
2020-06-24 17:50:16 +02:00
2020-06-24 17:50:13 +02:00
2020-06-22 09:31:10 +02:00
2020-06-22 09:31:26 +02:00
2020-06-24 17:50:19 +02:00
2020-06-10 20:24:54 +02:00
2020-06-24 17:50:18 +02:00
2020-04-23 10:36:42 +02:00
2020-06-22 09:31:04 +02:00
2020-06-10 20:24:57 +02:00
2020-04-23 10:36:23 +02:00
2020-02-24 08:36:34 +01:00
2019-10-14 21:44:26 +02:00
2019-12-31 16:45:25 +01:00
2020-06-24 17:50:17 +02:00
2019-09-28 08:14:15 -07:00
2020-06-22 09:31:01 +02:00
2020-04-23 10:36:33 +02:00
2020-06-24 17:50:21 +02:00
2020-06-22 09:31:11 +02:00
2020-06-24 17:50:08 +02:00
2020-01-14 20:08:18 +01:00
2020-01-23 08:22:51 +01:00
2020-06-24 17:50:18 +02:00
2020-05-27 17:46:48 +02:00
2020-06-22 09:30:58 +02:00
2020-06-24 17:50:13 +02:00
2020-02-24 08:36:41 +01:00
2020-01-14 20:08:37 +01:00
2020-06-24 17:50:12 +02:00
2020-06-24 17:50:22 +02:00
2020-06-24 17:50:21 +02:00
2020-06-24 17:50:22 +02:00
2020-06-22 09:31:22 +02:00
2020-06-24 17:50:23 +02:00
2020-06-22 09:31:10 +02:00
2020-02-19 19:53:07 +01:00
2019-09-13 17:23:18 +03:00
2020-06-24 17:50:21 +02:00
2020-05-27 17:46:40 +02:00
2020-02-05 21:22:49 +00:00
2020-06-24 17:50:23 +02:00
2020-02-28 17:22:13 +01:00
2020-06-24 17:50:22 +02:00
2020-02-24 08:36:27 +01:00
2020-06-24 17:50:16 +02:00
2020-06-24 17:50:15 +02:00
2020-06-24 17:50:17 +02:00
2020-06-24 17:50:09 +02:00
2019-10-10 14:50:32 +02:00
2020-03-18 07:17:55 +01:00
2020-02-24 08:36:47 +01:00
2020-02-24 08:36:48 +01:00
2020-06-22 09:31:26 +02:00
2020-06-17 16:40:27 +02:00
2020-06-17 16:40:38 +02:00
2019-09-18 11:05:34 -07:00
2019-09-18 11:05:34 -07:00