]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Fix byte order warnings for ethtool RX filter interface
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 6 Sep 2012 01:11:04 +0000 (02:11 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Sat, 1 Dec 2012 00:26:06 +0000 (00:26 +0000)
commit2384048bc4507a4981e7570b826c4edcef96dc10
treedbaaeb442cdd4657880ad35ac6cd2f68226b60dc
parent2686e1edc9ef60690305cfc6fdd8a37416abedc5
sfc: Fix byte order warnings for ethtool RX filter interface

sparse has got a bit more picky since I last ran it over this.  Add
forced casts for use of ~0 as a big-endian value.  Undo the pointless
optimisation of parameter validation with '|'; using '||' avoids these
warnings.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/ethtool.c