]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: simplify counter handling
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 1 May 2020 17:23:36 +0000 (19:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 19:53:06 +0000 (12:53 -0700)
commit097aad02ea0a7b1ff117eb21d30ed347b540c840
treead4bb278b43419e387116d7330dbe5325a4a8d70
parent9a1fba123f62356b813bc6f88c068f32bbe81d90
r8169: simplify counter handling

The counter handling functions can only fail if rtl8169_do_counters()
times out. In the poll function we emit an error message in case of
timeout, therefore we don't have to propagate the timeout all the
way up just to print another message basically saying the same.

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