summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/nic.h
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2013-09-09 18:11:54 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-09-11 20:57:45 (GMT)
commit444fa88ac35aa1bf9b7c23945444bc67f631033b (patch)
treeaab780afb379eeea762585db713efa67f74c117c /drivers/net/ethernet/sfc/nic.h
parent04f0888da20ea4f5842725c265c1940b708dc3e2 (diff)
downloadlinux-fsl-qoriq-444fa88ac35aa1bf9b7c23945444bc67f631033b.tar.xz
net: tilegx driver: avoid compiler warning
The "id" variable was being incremented in common code, but only initialized and used in IPv4 code. We move the increment to the IPv4 code too, and then legitimately use the uninitialized_var() macro to avoid the gcc 4.6 warning that 'id' may be used uninitialized. Note that gcc 4.7 does not warn. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/nic.h')
0 files changed, 0 insertions, 0 deletions