Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3134456pxk; Mon, 21 Sep 2020 06:12:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBLsyA6JdrIZJKDRGDuL210iMaLloFpUuOe787eEFZ+VwKZDMgU7uSKBlOWVoD4T6oDUCC X-Received: by 2002:a17:906:5e59:: with SMTP id b25mr51198153eju.414.1600693966895; Mon, 21 Sep 2020 06:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600693966; cv=none; d=google.com; s=arc-20160816; b=oprz4iXd9nkQZx7QRAH2SHOFQI09Z9DCYkT1K45fVOmZLcsGuidDFVenCsD0RnuqDk Txxo+8XdL5bo2vERJsB/DrtWZAz0dJvd7B5iMdgKDANf5jhWjEw2r47jRDrd0n7Jl6Pc ygg8BjmGmejqk7gghJkul7rdhkEDHDJLZyJQ5sbabXnbpdCE9Oyh8XkEYlXc753KfvY5 CQoTsYAjmtRCTM+mWduzRxnq/O+bkEVKhrNry4wed/PnGO7lOotvLxt5hXLzKTfZxk9b lgox41rpSV/91ciMQ86MhVWigC3oYoPgMnOcNfY1HHDZSs97h215Ve4KRjNGRW+i6tM5 2nMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=AZlhoSDFj0ggnvO1OrKATdm3hWqbEYvgIqqNE053z+s=; b=xA63X7GgY4EFniV35AQDjPovyxuDQvS2yIvyjdZ9lSLGNIqKPtwWWeB6Q0aGUbObAO quE74qyKRkUOEmqVwxZsepzNFjphpiFfCeYqMfhlHoKdAKBao6SYYU3IQuXxoqDYuSSJ 3GqFWefXL219Bi3z3x4QWI3AfantiJjLFthiM5TmiNZTwDigJ+8aDVDlMt9ldNZADWBb pKXteEGsmVWd50pgrrpK/VtAx0NRR7HVj+mxq1ULFe5TWlm0cJ+qoFrLFaqYiqeq5ONh 225bOUJ6qhSJKnEE3ZxDByb+vzrTFfbJfw4DcxYxwJEHi1bk3djKqXrsXRqlxaPAZGcL 2BrA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q18si8193607ejd.663.2020.09.21.06.12.17; Mon, 21 Sep 2020 06:12:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727502AbgIUNLP (ORCPT + 99 others); Mon, 21 Sep 2020 09:11:15 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13811 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727477AbgIUNLC (ORCPT ); Mon, 21 Sep 2020 09:11:02 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 24ADA27BFA3DD12BA083; Mon, 21 Sep 2020 21:10:59 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:10:50 +0800 From: Qinglang Miao To: Kalle Valo CC: "David S. Miller" , Jakub Kicinski , , , , Qinglang Miao Subject: [PATCH -next] zd1201: simplify the return expression of zd1201_set_maxassoc() Date: Mon, 21 Sep 2020 21:11:15 +0800 Message-ID: <20200921131115.93504-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- drivers/net/wireless/zydas/zd1201.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/net/wireless/zydas/zd1201.c b/drivers/net/wireless/zydas/zd1201.c index 41641fc2b..718c4ee86 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, -- 2.23.0