sfc: an enumeration is not a bitmask

David Miller
2011-05-17T18:14:50Z

Ben can you please get rid of "enum efx_fc_type"?

drivers/net/sfc/mcdi_mac.c: In function ‘efx_mcdi_set_mac’:
drivers/net/sfc/mcdi_mac.c:36:2: warning: case value ‘3’ not in enumerated type ‘enum efx_fc_type’

An enumeration is not a bitmask, instead it means one out of the set
of enumerated values will be used. This means that the warning
here about:

switch (efx->wanted_fc) {
case EFX_FC_RX | EFX_FC_TX:

is completely legitimate.

Thanks.