Files
linux/drivers
David S. Miller 7ddae24f97 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: 877b7cb0b6 ("net: dsa: mv88e6xxx: Add minimal platform_data support")
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-05-20 19:04:24 -04:00
..
2018-04-19 15:11:50 -07:00
…
…
2018-03-27 09:51:22 +02:00
2018-04-27 14:12:43 +02:00
…
2018-04-12 21:46:10 -04:00
2018-03-19 14:20:24 -05:00
2018-04-18 23:37:25 -04:00
…
…
…
…
2018-05-02 21:47:35 +02:00
2018-05-17 16:11:40 -04:00
…
…
…
…
…
…
…
…
…
…
2018-03-29 13:38:10 +03:00
…