net: ethernet: ti: cpsw: correct .ndo_open error path
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 28 May 2019 17:45:19 +0000 (20:45 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 04:50:14 +0000 (21:50 -0700)
commit02caceded0691a31a21b62011da8dae0d3aec85b
tree46185d9eeba0a47735b8ae97aef02d9920d61e50
parent6faaffb3b1ce0b136ad217e941f8d436794d24f9
net: ethernet: ti: cpsw: correct .ndo_open error path

It's found while review and probably never happens, but real number
of queues is set per device, and error path should be per device.
So split error path based on usage_count.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c