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-05-14 16:06:48 +02: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-05-14 11:22:59 +02:00
2018-05-14 08:55:12 -06: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-04-23 21:02:41 -04:00
2018-06-06 17:27:14 -07:00
2018-05-07 15:58:07 +02: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-05-09 13:58:01 +02:00
2018-05-15 09:40:37 +02: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-05-09 17:08:29 +02: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-05-18 12:08:15 +02:00
2018-06-06 17:27:14 -07:00
2018-06-07 12:34:37 -07:00
2018-05-14 08:31:06 -06: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-04-23 13:31:27 +02: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-05-15 08:32:42 +02:00
2018-06-04 15:54:04 -07:00
2018-05-14 16:20:48 +02: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-04-20 17:18:35 -07:00
2018-06-06 11:15:43 -07:00
2018-04-25 16:46:55 -07:00
2018-06-06 17:27:14 -07:00
2018-04-25 16:46:55 -07:00
2018-06-06 17:27:14 -07:00
2018-06-06 18:39:49 -07:00
2018-05-15 13:56:16 -06:00
2018-06-06 18:39:49 -07:00
2018-05-14 16:23:15 +02: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-05-12 11:38:13 +03:00
2018-06-07 12:34:37 -07:00
2018-06-04 07:58:06 -07:00
2018-05-07 11:51:03 +02:00
2018-06-06 17:27:14 -07:00
2018-05-15 18:02:00 +02:00
2018-06-07 10:23:33 -07:00
2018-05-14 16:16:35 +02: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-05-14 16:31:59 +02:00
2018-06-05 16:20:22 -07:00
2018-05-18 14:37:16 -04:00
2018-06-06 17:27:14 -07:00