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)
commit028f5f8ef44fcf87a456772cbb9f0d90a0a22884
treeb03cc98d1e0ad2cb7ec45196fe60a834d61d3a5b
parentba5707ec58cfb6853dff41c2aae72deb6a03d389
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