diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-10-24 17:28:35 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2017-02-08 14:13:05 -0800 |
commit | e70dda0868fad0f74c46df21f7f45fec24f29879 (patch) | |
tree | 76091ac56597c5039b40718e451d79ab624e3a65 /drivers/lightnvm | |
parent | 6080ef6e7c0a0592cbcca11200d879faf65e27d4 (diff) | |
download | linux-e70dda0868fad0f74c46df21f7f45fec24f29879.tar.gz linux-e70dda0868fad0f74c46df21f7f45fec24f29879.tar.bz2 linux-e70dda0868fad0f74c46df21f7f45fec24f29879.zip |
mtd: ichxrom: maybe-uninitialized with gcc-4.9
pci_read_config_word() might fail and not initialize its output,
as pointed out by older versions of gcc when using the -Wmaybe-unintialized
flag:
drivers/mtd/maps/ichxrom.c: In function ‘ichxrom_cleanup’:
drivers/mtd/maps/ichxrom.c:63:2: error: ‘word’ is used uninitialized in this function [-Werror=uninitialized]
This is apparently a correct warning, though it does not show up
with newer compilers. Changing the code to not attempt to write
back uninitialized data into PCI config space is a correct
fix for the problem and avoids the warning.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/lightnvm')
0 files changed, 0 insertions, 0 deletions