mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
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:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| ocelot_ana.h | ||
| ocelot_board.c | ||
| ocelot_dev_gmii.h | ||
| ocelot_dev.h | ||
| ocelot_hsio.h | ||
| ocelot_io.c | ||
| ocelot_qs.h | ||
| ocelot_qsys.h | ||
| ocelot_regs.c | ||
| ocelot_rew.h | ||
| ocelot_sys.h | ||
| ocelot.c | ||
| ocelot.h | ||