]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: handle error with qca8k_read operation
authorAnsuel Smith <ansuelsmth@gmail.com>
Fri, 14 May 2021 20:59:55 +0000 (22:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:30:22 +0000 (15:30 -0700)
commit72fc430b63080af0b8d333e628ca90f934236651
treeb03cc98d1e0ad2cb7ec45196fe60a834d61d3a5b
parent63fecd386181953fb590fe8d7c47e9e1f11865ff
net: dsa: qca8k: handle error with qca8k_read operation

qca8k_read can fail. Rework any user to handle error values and
correctly return.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c