drivers: net: xgene: Pre-initialize ret in xgene_enet_get_resources()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 25 Jun 2015 13:13:29 +0000 (15:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Jun 2015 23:54:32 +0000 (16:54 -0700)
commit2e598712e4b36256c3cf3bca1c2bf0460036cc89
tree497e965ad125731b07da1cf5d3ced85d7e8e80e6
parent8e690ffdbcc7b548aae3c644c3efcc6e0394fe37
drivers: net: xgene: Pre-initialize ret in xgene_enet_get_resources()

If CONFIG_ACPI=n:

    drivers/net/ethernet/apm/xgene/xgene_enet_main.c: In function ‘xgene_enet_get_resources’:
    drivers/net/ethernet/apm/xgene/xgene_enet_main.c:951: warning: ‘ret’ may be used uninitialized in this function

If the driver is bound to a legacy platform device, ret will contain
arbitrary data. If it is non-zero, it will be returned to the caller as
an error code.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene/xgene_enet_main.c