From nobody Mon Feb 9 17:58:21 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1004EC001DC for ; Sat, 22 Jul 2023 21:58:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbjGVV6v (ORCPT ); Sat, 22 Jul 2023 17:58:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229559AbjGVV6s (ORCPT ); Sat, 22 Jul 2023 17:58:48 -0400 Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF045269A for ; Sat, 22 Jul 2023 14:58:42 -0700 (PDT) Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-3466725f0beso17729045ab.1 for ; Sat, 22 Jul 2023 14:58:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20221208; t=1690063122; x=1690667922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SQTls//O2JbbV17qPpJETi4oaKteU3qRCqIMmnS37Jk=; b=aMv1PRqcY/jg9COHkd6El94rMTQ5QhXFtV7Y0YnSaUpZuBEuTB6uPZ/EMeE6+GGYXm rXiznG5q5Ooqm5OFEVNF6cJKBMp+si2Bj+DAStv1u1NqKn7CmiP+p8MSUc/0dNORGuwz eQ8z6oEB8iyMBuhyQvQ3He9e5tjO3oY5U4MK/+miimYpiq3b4rtoQmj+/jw4jYryIjxd /fe/DAo8UT9ger+lpDhMjm0m3oXOj6Grv+vIgJZ3eTSEExYdcP5NFoOUAoTARDSiM5dx qA43JoZ5taunpD6JsgZGjdhfd3rnAU8WxC4XH8R5MOuEwKWB0YIegi1YAs08MlEFVJWP Ekag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690063122; x=1690667922; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SQTls//O2JbbV17qPpJETi4oaKteU3qRCqIMmnS37Jk=; b=ioNX8bUlfVMTmXYV1uZmjqgPQtHzdVxuMTBjTjHK8gTTZU1c93E6xEXRMU8TXHxC7N yq+DEZBsQ5dp24vjOrFBsdDa9g5ONIXxcE6URPWY6K0tZCVa437xcxT9FvMt4aCsydB7 SpkZ0bEm3ajzy9mvVOUzsPt3d7qi05NPPVOv3vIdybS1n5P1IjRwqaGMLsn4HITy63/f kTh780+Pxp3097i6Ee6ZMh8+HQy5uOXw2jyN1M7BTetiogyi7OaGsmnV1ordgcBlpyAD QkmTXmrUTrTD3Q7qywU74mSIVjgFj696NBiV62jg+ekg8EXTNQQy0KHr6tIo8temZbti PWsQ== X-Gm-Message-State: ABy/qLbNvFERBlmdfdxQ2+1QBIN9yXJSNoOFblHqiqeemgwTkkZl2kZ5 21y7h5S/7oCEw4ZH2/6CQ24= X-Google-Smtp-Source: APBJJlEKpsqcqDHLPWl1bfVv7gwOvVfdJeCwqkQoN4M8KHFx+7ASnFDEOXhlnWjjQ6FBHi8//k+1CQ== X-Received: by 2002:a05:6e02:1cae:b0:346:77f4:e22d with SMTP id x14-20020a056e021cae00b0034677f4e22dmr4151199ill.6.1690063122039; Sat, 22 Jul 2023 14:58:42 -0700 (PDT) Received: from localhost.localdomain ([161.97.244.155]) by smtp.gmail.com with ESMTPSA id 17-20020a0566380a5100b0042b61a5087csm1878723jap.132.2023.07.22.14.58.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 22 Jul 2023 14:58:41 -0700 (PDT) From: Franziska Naepelt To: franziska.naepelt@googlemail.com Cc: gregkh@linuxfoundation.org, hdegoede@redhat.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: [PATCH 5/9] staging: rtl8723bs: ioctl_linux: Remove unnecessary blank lines Date: Sat, 22 Jul 2023 23:58:40 +0200 Message-Id: <20230722215840.4323-1-franziska.naepelt@googlemail.com> X-Mailer: git-send-email 2.39.2 (Apple Git-143) In-Reply-To: <20230722215330.4114-1-franziska.naepelt@googlemail.com> References: <20230722215330.4114-1-franziska.naepelt@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Fix the following checkpatch issues: - CHECK: Blank lines aren't necessary before a close brace '}' - CHECK: Blank lines aren't necessary after an open brace '{' Signed-off-by: Franziska Naepelt --- .../staging/rtl8723bs/os_dep/ioctl_linux.c | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/stagi= ng/rtl8723bs/os_dep/ioctl_linux.c index 16ff55d75687..cde2c5d1e92c 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -40,7 +40,6 @@ static int wpa_set_auth_algs(struct net_device *dev, u32 = value) } =20 return ret; - } =20 static int wpa_set_encryption(struct net_device *dev, struct ieee_param *p= aram, u32 param_len) @@ -80,7 +79,6 @@ static int wpa_set_encryption(struct net_device *dev, str= uct ieee_param *param, } =20 if (strcmp(param->u.crypt.alg, "WEP") =3D=3D 0) { - padapter->securitypriv.ndisencryptstatus =3D Ndis802_11Encryption1Enable= d; padapter->securitypriv.dot11PrivacyAlgrthm =3D _WEP40_; padapter->securitypriv.dot118021XGrpPrivacy =3D _WEP40_; @@ -392,7 +390,6 @@ static int wpa_set_param(struct net_device *dev, u8 nam= e, u32 value) * be set. */ break; - } case IEEE_PARAM_PRIVACY_INVOKED: =20 @@ -429,11 +426,9 @@ static int wpa_set_param(struct net_device *dev, u8 na= me, u32 value) ret =3D -EOPNOTSUPP; =20 break; - } =20 return ret; - } =20 static int wpa_mlme(struct net_device *dev, u32 command, u32 reason) @@ -462,7 +457,6 @@ static int wpa_mlme(struct net_device *dev, u32 command= , u32 reason) } =20 return ret; - } =20 static int wpa_supplicant_ioctl(struct net_device *dev, struct iw_point *p) @@ -485,7 +479,6 @@ static int wpa_supplicant_ioctl(struct net_device *dev,= struct iw_point *p) } =20 switch (param->cmd) { - case IEEE_CMD_SET_WPA_PARAM: ret =3D wpa_set_param(dev, param->u.wpa_param.name, param->u.wpa_param.v= alue); break; @@ -506,7 +499,6 @@ static int wpa_supplicant_ioctl(struct net_device *dev,= struct iw_point *p) default: ret =3D -EOPNOTSUPP; break; - } =20 if (ret =3D=3D 0 && copy_to_user(p->pointer, param, p->length)) @@ -586,7 +578,6 @@ static int rtw_set_encryption(struct net_device *dev, s= truct ieee_param *param, =20 pwep->key_length =3D wep_key_len; pwep->length =3D wep_total_len; - } =20 pwep->key_index =3D wep_key_idx; @@ -623,7 +614,6 @@ static int rtw_set_encryption(struct net_device *dev, s= truct ieee_param *param, } =20 goto exit; - } =20 if (!psta && check_fwstate(pmlmepriv, WIFI_AP_STATE)) { /* group key */ @@ -671,7 +661,6 @@ static int rtw_set_encryption(struct net_device *dev, s= truct ieee_param *param, } =20 goto exit; - } =20 if (psecuritypriv->dot11AuthAlgrthm =3D=3D dot11AuthAlgrthm_8021X && psta= ) { /* psk/802_1x */ @@ -694,7 +683,6 @@ static int rtw_set_encryption(struct net_device *dev, s= truct ieee_param *param, psecuritypriv->busetkipkey =3D true; =20 } else if (strcmp(param->u.crypt.alg, "CCMP") =3D=3D 0) { - psta->dot118021XPrivacy =3D _AES_; } else { psta->dot118021XPrivacy =3D _NO_PRIVACY_; @@ -752,7 +740,6 @@ static int rtw_set_encryption(struct net_device *dev, s= truct ieee_param *param, kfree(pwep); =20 return ret; - } =20 static int rtw_set_beacon(struct net_device *dev, struct ieee_param *param= , int len) @@ -777,7 +764,6 @@ static int rtw_set_beacon(struct net_device *dev, struc= t ieee_param *param, int ret =3D -EINVAL; =20 return ret; - } =20 static void rtw_hostapd_sta_flush(struct net_device *dev) @@ -856,7 +842,6 @@ static int rtw_add_sta(struct net_device *dev, struct i= eee_param *param) } =20 return ret; - } =20 static int rtw_del_sta(struct net_device *dev, struct ieee_param *param) @@ -885,18 +870,15 @@ static int rtw_del_sta(struct net_device *dev, struct= ieee_param *param) list_del_init(&psta->asoc_list); pstapriv->asoc_list_cnt--; updated =3D ap_free_sta(padapter, psta, true, WLAN_REASON_DEAUTH_LEAVIN= G); - } spin_unlock_bh(&pstapriv->asoc_list_lock); =20 associated_clients_update(padapter, updated); =20 psta =3D NULL; - } =20 return ret; - } =20 static int rtw_ioctl_get_sta_data(struct net_device *dev, struct ieee_para= m *param, int len) @@ -956,7 +938,6 @@ static int rtw_ioctl_get_sta_data(struct net_device *de= v, struct ieee_param *par } =20 return ret; - } =20 static int rtw_get_sta_wpaie(struct net_device *dev, struct ieee_param *pa= ram) @@ -995,7 +976,6 @@ static int rtw_get_sta_wpaie(struct net_device *dev, st= ruct ieee_param *param) } =20 return ret; - } =20 static int rtw_set_wps_beacon(struct net_device *dev, struct ieee_param *p= aram, int len) @@ -1029,7 +1009,6 @@ static int rtw_set_wps_beacon(struct net_device *dev,= struct ieee_param *param, } =20 return ret; - } =20 static int rtw_set_wps_probe_resp(struct net_device *dev, struct ieee_para= m *param, int len) @@ -1057,7 +1036,6 @@ static int rtw_set_wps_probe_resp(struct net_device *= dev, struct ieee_param *par } =20 return ret; - } =20 static int rtw_set_wps_assoc_resp(struct net_device *dev, struct ieee_para= m *param, int len) @@ -1085,7 +1063,6 @@ static int rtw_set_wps_assoc_resp(struct net_device *= dev, struct ieee_param *par } =20 return ret; - } =20 static int rtw_set_hidden_ssid(struct net_device *dev, struct ieee_param *= param, int len) @@ -1144,7 +1121,6 @@ static int rtw_ioctl_acl_remove_sta(struct net_device= *dev, struct ieee_param *p =20 rtw_acl_remove_sta(padapter, param->sta_addr); return 0; - } =20 static int rtw_ioctl_acl_add_sta(struct net_device *dev, struct ieee_param= *param, int len) @@ -1162,7 +1138,6 @@ static int rtw_ioctl_acl_add_sta(struct net_device *d= ev, struct ieee_param *para } =20 return rtw_acl_add_sta(padapter, param->sta_addr); - } =20 static int rtw_ioctl_set_macaddr_acl(struct net_device *dev, struct ieee_p= aram *param, int len) @@ -1293,7 +1268,6 @@ static int rtw_hostapd_ioctl(struct net_device *dev, = struct iw_point *p) default: ret =3D -EOPNOTSUPP; break; - } =20 if (ret =3D=3D 0 && copy_to_user(p->pointer, param, p->length)) --=20 2.39.2 (Apple Git-143)