Skip to content

Commit

Permalink
lan78xx: Add missing return code checks
Browse files Browse the repository at this point in the history
There are many places in the driver where the return code from a
function call is captured but without a subsequent test of the
return code and appropriate action taken.

This patch adds the missing return code tests and action. In most
cases the action is an early exit from the calling function.

The function lan78xx_set_suspend() was also updated to make it
consistent with lan78xx_suspend().

Signed-off-by: John Efstathiades <john.efstathiades@pebblebay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
John Efstathiades authored and David S. Miller committed Aug 25, 2021
1 parent 40b8452 commit 3415f6b
Showing 1 changed file with 333 additions and 66 deletions.
Loading

0 comments on commit 3415f6b

Please sign in to comment.