diff options
author | Qinglang Miao <miaoqinglang@huawei.com> | 2020-09-21 15:11:15 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-09-24 17:50:38 +0200 |
commit | 5acbf34e2a2cee13208e6466346ca987eb772d55 (patch) | |
tree | 60fe8f303e4d19619bbd0599c233adebfe6bc6b3 /drivers/net/wireless/zydas | |
parent | rtw88: Fix potential probe error handling race with wow firmware loading (diff) | |
download | linux-5acbf34e2a2cee13208e6466346ca987eb772d55.tar.xz linux-5acbf34e2a2cee13208e6466346ca987eb772d55.zip |
zd1201: simplify the return expression of zd1201_set_maxassoc()
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200921131115.93504-1-miaoqinglang@huawei.com
Diffstat (limited to 'drivers/net/wireless/zydas')
-rw-r--r-- | drivers/net/wireless/zydas/zd1201.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/zydas/zd1201.c b/drivers/net/wireless/zydas/zd1201.c index 41641fc2be74..718c4ee865ba 100644 --- a/drivers/net/wireless/zydas/zd1201.c +++ b/drivers/net/wireless/zydas/zd1201.c @@ -1652,15 +1652,11 @@ static int zd1201_set_maxassoc(struct net_device *dev, struct iw_request_info *info, struct iw_param *rrq, char *extra) { struct zd1201 *zd = netdev_priv(dev); - int err; if (!zd->ap) return -EOPNOTSUPP; - err = zd1201_setconfig16(zd, ZD1201_RID_CNFMAXASSOCSTATIONS, rrq->value); - if (err) - return err; - return 0; + return zd1201_setconfig16(zd, ZD1201_RID_CNFMAXASSOCSTATIONS, rrq->value); } static int zd1201_get_maxassoc(struct net_device *dev, |