net: dsa: qca8k: add missing check return value in qca8k_phylink_mac_config()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 29 May 2021 03:04:39 +0000 (11:04 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sun, 30 May 2021 21:22:31 +0000 (14:22 -0700)
commit9fe99de01440d9ede74d447ac76e9c445d8daae9
tree519535d372818ae806734a8b7e10e1eedd09659e
parent7c9896e37807862e276064dd9331860f5d27affc
net: dsa: qca8k: add missing check return value in qca8k_phylink_mac_config()

Now we can check qca8k_read() return value correctly, so if
it fails, we need return directly.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/qca8k.c