Geert Uytterhoeven
2ac0e1524d
net: mscc: ocelot: Fix uninitialized error in ocelot_netdevice_event()
...
With gcc-4.1.2:
drivers/net/ethernet/mscc/ocelot.c: In function ‘ocelot_netdevice_event’:
drivers/net/ethernet/mscc/ocelot.c:1129: warning: ‘ret’ may be used uninitialized in this function
If the list iterated over by netdev_for_each_lower_dev() is empty, ret
is never initialized, and converted into a notifier return value.
Fix this by preinitializing ret to zero.
Fixes: a556c76adc ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2018-06-07 16:54:39 -04:00
..
2018-06-06 15:36:13 -07:00
2018-06-06 13:49:25 -07:00
2018-06-05 17:01:41 -07:00
2018-05-29 09:59:53 -04:00
2018-06-06 17:27:14 -07:00
2018-06-04 10:58:12 -07:00
2018-06-04 10:00:01 -07:00
2018-05-30 15:45:01 +02:00
2018-06-06 15:48:10 -07:00
2018-06-06 17:27:14 -07:00
2018-05-23 07:39:09 +02:00
2018-06-06 18:39:49 -07:00
2018-06-05 10:08:27 -07:00
2018-06-07 10:23:33 -07:00
2018-06-05 15:51:21 -07:00
2018-06-06 17:27:14 -07:00
2018-06-06 17:27:14 -07:00
2018-05-21 12:18:57 +02:00
2018-06-06 11:15:43 -07:00
2018-06-05 16:20:22 -07:00
2018-05-25 18:23:56 +02:00
2018-06-06 17:27:14 -07:00
2018-06-07 12:34:37 -07:00
2018-06-07 10:23:33 -07:00
2018-06-06 11:15:43 -07:00
2018-06-05 16:20:22 -07:00
2018-06-05 16:14:12 -07:00
2018-06-04 10:58:12 -07:00
2018-06-06 18:39:49 -07:00
2018-06-06 17:27:14 -07:00
2018-06-04 10:58:12 -07:00
2018-05-24 12:38:22 +01:00
2018-06-04 13:57:43 -07:00
2018-05-24 22:08:26 +02:00
2018-06-01 09:02:53 -06:00
2018-06-07 10:23:33 -07:00
2018-06-06 17:27:14 -07:00
2018-06-07 12:34:37 -07:00
2018-06-04 10:00:01 -07:00
2018-06-06 17:27:14 -07:00
2018-06-07 10:23:33 -07:00
2018-06-05 16:11:43 -07:00
2018-06-06 17:27:14 -07:00
2018-06-07 16:54:39 -04:00
2018-05-31 12:43:14 +02:00
2018-06-05 16:20:22 -07:00
2018-06-04 15:54:04 -07:00
2018-06-06 18:39:49 -07:00
2018-05-30 15:38:21 +05:30
2018-06-04 10:58:12 -07:00
2018-06-05 09:38:39 -07:00
2018-06-06 18:39:49 -07:00
2018-06-06 17:27:14 -07:00
2018-06-05 16:14:12 -07:00
2018-06-07 12:34:37 -07:00
2018-06-05 16:14:12 -07:00
2018-05-28 23:05:11 -04:00
2018-06-06 11:15:43 -07:00
2018-06-06 17:27:14 -07:00
2018-06-06 17:27:14 -07:00
2018-06-06 18:39:49 -07:00
2018-06-06 18:39:49 -07:00
2018-06-06 18:39:49 -07:00
2018-06-05 16:20:22 -07:00
2018-06-05 09:38:39 -07:00
2018-06-07 12:34:37 -07:00
2018-06-04 07:58:06 -07:00
2018-06-06 17:27:14 -07:00
2018-06-07 10:23:33 -07:00
2018-06-06 17:27:14 -07:00
2018-06-04 13:57:43 -07:00
2018-06-06 18:39:49 -07:00
2018-06-07 12:34:37 -07:00
2018-06-05 16:20:22 -07:00
2018-06-06 17:27:14 -07:00