]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: better error handling in ocelot_xtr_irq_handler
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 13 Feb 2021 22:37:52 +0000 (00:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 01:31:43 +0000 (17:31 -0800)
commit2628a298624dc465c3c79b7d268143a939143722
tree2ba89d5250a2fe088543fae55cfdb71f3ad169d5
parentf7a41428695be6f60bdc60c7512b96ee29473cb3
net: mscc: ocelot: better error handling in ocelot_xtr_irq_handler

The ocelot_rx_frame_word() function can return a negative error code,
however this isn't being checked for consistently. Errors being ignored
have not been seen in practice though.

Also, some constructs can be simplified by using "goto" instead of
repeated "break" statements.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_vsc7514.c