aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-05-20 19:04:24 -0400
committerDavid S. Miller <davem@davemloft.net>2018-05-20 19:04:24 -0400
commit7ddae24f97f9fc8f151aae75f0371ced06a8cd99 (patch)
treedab0c06315f9caf15a48e7749e54aa74ceb46816 /scripts/gdb/linux/utils.py
parentbf3c592b9d78ab2768150c680de22ef99e6e3b32 (diff)
mv88e6xxx: Fix uninitialized variable warning.
In mv88e6xxx_probe(), ("np" or "pdata") might be an invariant but GCC can't see that, therefore: drivers/net/dsa/mv88e6xxx/chip.c: In function ‘mv88e6xxx_probe’: drivers/net/dsa/mv88e6xxx/chip.c:4420:13: warning: ‘compat_info’ may be used uninitialized in this function [-Wmaybe-uninitialized] chip->info = compat_info; Actually, it should have warned on the "if (!compat_info)" test, but whatever. Explicitly initialize to NULL in the variable declaration to deal with this. Fixes: 877b7cb0b6f2 ("net: dsa: mv88e6xxx: Add minimal platform_data support") Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions