diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-02-24 11:30:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-24 20:29:09 +0100 |
commit | 1b8c1012142d83229b7d1c960d131e6a30f777a6 (patch) | |
tree | 87b0debde646e0ea29a320e911293d1f9cb7afac /lib/test_parman.c | |
parent | rds: fix memory leak error (diff) | |
download | linux-1b8c1012142d83229b7d1c960d131e6a30f777a6.tar.xz linux-1b8c1012142d83229b7d1c960d131e6a30f777a6.zip |
drivers: net: xgene: Simplify xgene_enet_setup_mss() to kill warning
With gcc-4.1.2 and -Os:
drivers/net/ethernet/apm/xgene/xgene_enet_main.c: In function ‘xgene_enet_start_xmit’:
drivers/net/ethernet/apm/xgene/xgene_enet_main.c:297: warning: ‘mss_index’ may be used uninitialized in this function
Using a separate variable to track success may confuse the compiler.
Preinitialize mss_index with -EBUSY and check for negative error values
instead to kill the warning.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/test_parman.c')
0 files changed, 0 insertions, 0 deletions