commit | acf1c02f023926b8b04672a9e81b1711ae681619 | [log] [tgz] |
---|---|---|
author | Russell King <rmk+kernel@armlinux.org.uk> | Thu Nov 30 13:59:11 2017 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Dec 01 15:18:41 2017 -0500 |
tree | 03265931c7b76834810d2a990d1a7a9e55a20552 | |
parent | a0da456bbf95d2a9294799bb05c61bfb24736bb7 [diff] |
sfp: fix RX_LOS signal handling The options word is a be16 quantity, so we need to test the flags having converted the endian-ness. Convert the flag bits to be16, which can be optimised by the compiler, rather than converting a variable at runtime. Reported-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>