]> 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)
commit6bf1a16c5982363d47a2b90bf8ebba78ab017d9b
tree121c89d2d1448abe27fe3e650b8d573c294bf54b
parent7c4b0705e8ac7595cd2a0f6af7a7974fae168798
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