]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: simplify and improve check for dash
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 22 Feb 2018 20:37:48 +0000 (21:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Feb 2018 17:29:19 +0000 (12:29 -0500)
commite37a334283bfd4252257ddaf9d90b303db85653b
tree121c89d2d1448abe27fe3e650b8d573c294bf54b
parentc6e3c66074dadf39359ae65286115b76177e1d34
r8169: simplify and improve check for dash

r8168_check_dash() returns false anyway for all chip versions not
supporting dash. So we can simplify the check conditions.

In addition change the check functions to return bool instead of int,
because they actually return a bool value.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c