diff options
author | Qinglang Miao | 2020-09-21 21:11:15 +0800 |
---|---|---|
committer | Kalle Valo | 2020-09-24 18:50:38 +0300 |
commit | 5acbf34e2a2cee13208e6466346ca987eb772d55 (patch) | |
tree | 60fe8f303e4d19619bbd0599c233adebfe6bc6b3 | |
parent | ac4bac99161e8f7a7a9faef70d8ca8f69d5493a9 (diff) |
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
-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, |