sfc: Merge efx_mcdi_mac_check_fault() and efx_mcdi_get_mac_faults()
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 8 Sep 2011 01:09:42 +0000 (02:09 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 11 Nov 2017 13:34:48 +0000 (13:34 +0000)
commit0e283937392d4c91189a18b7e48ca3043c70db58
tree9df199383083661a47a0ce7c77811ce13fcbcc01
parent02d5072ddfc6cdd999a8551ab6ac8ce74767da69
sfc: Merge efx_mcdi_mac_check_fault() and efx_mcdi_get_mac_faults()

commit 1daf417029ddc10b7854430c1e1118df791d0eaf upstream.

The latter is only called by the former, which is a very short
wrapper.  Further, gcc 4.5 may currently wrongly warn that the
'faults' variable may be used uninitialised.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
[bwh: Backported to 3.2: keep efx_mcdi_get_mac_faults() static]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/sfc/mcdi_mac.c