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)
commit9dbe7896d95af114fcb5554b53cf796ca9293b13
tree121c89d2d1448abe27fe3e650b8d573c294bf54b
parent7edf6d314cd061e1d0a1b7bc0b511d64322c3f72
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