From patchwork Thu Oct 27 06:01:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanjuate Brunostar X-Patchwork-Id: 11583 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp52297wru; Wed, 26 Oct 2022 23:04:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6QssbX8AR2ZQiA1DBbXS/sRMUy8dvOS5NQbv5+56W/D+vFMd8ExhR5w2/KjjVexYp6GmFZ X-Received: by 2002:a17:902:e84e:b0:186:b699:d4ab with SMTP id t14-20020a170902e84e00b00186b699d4abmr15918057plg.116.1666850658379; Wed, 26 Oct 2022 23:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666850658; cv=none; d=google.com; s=arc-20160816; b=ZU4kkjhur7Ola3vuIx9LckOf8maVHs3z2SOgzfpxWtxlUUV+3ZaI4wZu0D4KOGMy8d /8i283eY42a7d7JuimBfj0g8RQzBAQeQCzXa1VMo5Fj6k7Q5FkTThVse5gZNPxoV2ciw hf1wak9cw5qUhjYvKxRd+oMVZvy6gR/FNkjuLcFP9/OdYRaKUTpkfKyKgcyfpPhL5eNP DNWeYPvrG5GWCjKJnVJ+XpEkhIJiontYAwHe3hB5D+iUWkgI/Afh3MgE/uRVfT9CNjde 3KuZu/ZlMwHU3gZzJfHErZeHm+igOjuZ1yRXN0ahMOCJ53JVSsxaz30ZxJ3ngDmj2yK8 laLQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qUjB/LIeIaF8ms/g2Nbld44QrRlq9IWMpRhgl/Fq6KI=; b=KLoU/JmOkvRaAwwUxN0HWP7628i6Q5hovI2bFP3uKttYZYEkOvamIy9jHvlFuPWRY8 qXTq3o6rHbVs0YfJ15szkJkQGackEe/k881iDemMCg+HNcDI+LSQqRzIfRX2t6/p0LvT aCnaFlLCScFhBTgPDUGztDJ7oS1HgIro84aMKkm2dQhjAyezNOkm8LNDYfGBOZ2dYKx2 g+1GNdlpzFBb4+r2JUedYGVxSuCjw43ANpKTd8uzKJGHtHqEgPSvlPO+vjvyoxeJ/X22 UDawJe94xzmVty3TDDA1NbZslvfKUL2ZB3nPpQPDa36jglKgNWHm8wzfPiJFoeNF3TrT kqhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JrIngGNL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a170902dace00b00183d1436ef0si682765plx.33.2022.10.26.23.04.05; Wed, 26 Oct 2022 23:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JrIngGNL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234336AbiJ0GCp (ORCPT + 99 others); Thu, 27 Oct 2022 02:02:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234417AbiJ0GCV (ORCPT ); Thu, 27 Oct 2022 02:02:21 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 269E515CB25 for ; Wed, 26 Oct 2022 23:02:03 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id f37so704554lfv.8 for ; Wed, 26 Oct 2022 23:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=qUjB/LIeIaF8ms/g2Nbld44QrRlq9IWMpRhgl/Fq6KI=; b=JrIngGNLTSa5y2Ea1pkwxz9x7/jlr0UHMb3FGDAZd0XQ8OOXPeS6y0lYGZ1FERn5vH xmgybQxf8Q/PUfR+QBr1EhiQUomvqH7+nXwhdqybHT8JTcEZ/YVdsqRfD+OiK6nGrEyU OYtoj657ZFrSvh0cy0RGyhten8uybTNTMMsc7RoTU2hV1O9Y21XnTMItkvbRKFxP12qg 1ZEh19NFhZok2D2ejrNTxIB8rbyW2VYWYUWtaXbyITjAGa70bHZfY72O/zAM8rS+n0xz NyeAnEm/lyloVkQGsOL3G6TNW3WYgRqw3HibWh6bJ57vBqEXYKMWtpfW1nexrCQfyhpd AkZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=qUjB/LIeIaF8ms/g2Nbld44QrRlq9IWMpRhgl/Fq6KI=; b=ucy22efSCQVa6j8UBKLMsXmo2mzA4i2n7Ah2OmszcM73wuvXNSEXmDJAlooMLUO5/i VldFqeDgaYV94DmkZpKHWh8N5ospzp+QDDed7NENclZLZcbs19vDIczdFUTBTgdkIiHf 3YH79SUt8s9QzqQvykHtMK69l8Y1JAfqxM9+zJss7OC/FF4oJjgJtgIeBaLNMis6OgCW 7zVWGIgnR58AVnJvi0vZvRNcgQ8XhqLmyPR0ZM93ARuD6xOKpdqT4XaLy8dBDZ7Bl+6V eS+YIw/mOlxkYefpMY0ULUAJR1tK9fR8jEUxSRojBr5UBcSRYDBsKMlV0/Ymn7Ifiloi 214A== X-Gm-Message-State: ACrzQf0JxolbjogVhuXpQKEgTMIoZHEXs8iYSIGbY3E2+Pt6QQ6cMKd4 5GH1yjb7fhfRA1d1v4tlswDmfxZecYjnTA== X-Received: by 2002:ac2:5f58:0:b0:4ab:8f05:7bf2 with SMTP id 24-20020ac25f58000000b004ab8f057bf2mr8214098lfz.537.1666850521348; Wed, 26 Oct 2022 23:02:01 -0700 (PDT) Received: from elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net ([20.240.130.248]) by smtp.googlemail.com with ESMTPSA id j3-20020a056512344300b0049fff3f645esm61537lfr.70.2022.10.26.23.02.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 23:02:01 -0700 (PDT) From: Tanjuate Brunostar To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev, Tanjuate Brunostar Subject: [PATCH v5 6/6] staging: vt6655: refactor code to avoid a line ending in '(' Date: Thu, 27 Oct 2022 06:01:30 +0000 Message-Id: <43693eef6afe24973ed28f8b26e2d5117f5d35f1.1666849707.git.tanjubrunostar0@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747819595900149653?= X-GMAIL-MSGID: =?utf-8?q?1747819595900149653?= join unnecessary split lines to avoid them ending in '(' Signed-off-by: Tanjuate Brunostar --- drivers/staging/vt6655/rxtx.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 6a4fcb16b674..d585435520b3 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -1118,7 +1118,7 @@ static unsigned int s_cbFillTxBufHead(struct vnt_private *pDevice, pMICHDR = (struct vnt_mic_hdr *)(pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_cts)); pvRTS = NULL; - pvCTS = (void *) (pbyTxBufferAddr + wTxBufSize + + pvCTS = (void *)(pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_cts) + cbMICHDR); pvTxDataHd = (void *)(pbyTxBufferAddr + wTxBufSize + sizeof(struct vnt_rrv_time_cts) + cbMICHDR + @@ -1296,10 +1296,8 @@ static void vnt_fill_txkey(struct ieee80211_hdr *hdr, u8 *key_buffer, ether_addr_copy(mic_hdr->addr2, hdr->addr2); ether_addr_copy(mic_hdr->addr3, hdr->addr3); - mic_hdr->frame_control = cpu_to_le16( - le16_to_cpu(hdr->frame_control) & 0xc78f); - mic_hdr->seq_ctrl = cpu_to_le16( - le16_to_cpu(hdr->seq_ctrl) & 0xf); + mic_hdr->frame_control = cpu_to_le16(le16_to_cpu(hdr->frame_control) & 0xc78f); + mic_hdr->seq_ctrl = cpu_to_le16(le16_to_cpu(hdr->seq_ctrl) & 0xf); if (ieee80211_has_a4(hdr->frame_control)) ether_addr_copy(mic_hdr->addr4, hdr->addr4); @@ -1470,9 +1468,9 @@ static int vnt_beacon_xmit(struct vnt_private *priv, /* Get Duration and TimeStampOff */ short_head->duration = - cpu_to_le16((u16)s_uGetDataDuration(priv, DATADUR_B, - frame_size, PK_TYPE_11A, current_rate, - false, 0, 0, 1, AUTO_FB_NONE)); + cpu_to_le16((u16)s_uGetDataDuration(priv, DATADUR_B, frame_size, + PK_TYPE_11A, current_rate, false, + 0, 0, 1, AUTO_FB_NONE)); short_head->time_stamp_off = vnt_time_stamp_off(priv, current_rate); @@ -1486,9 +1484,9 @@ static int vnt_beacon_xmit(struct vnt_private *priv, /* Get Duration and TimeStampOff */ short_head->duration = - cpu_to_le16((u16)s_uGetDataDuration(priv, DATADUR_B, - frame_size, PK_TYPE_11B, current_rate, - false, 0, 0, 1, AUTO_FB_NONE)); + cpu_to_le16((u16)s_uGetDataDuration(priv, DATADUR_B, frame_size, + PK_TYPE_11B, current_rate, false, + 0, 0, 1, AUTO_FB_NONE)); short_head->time_stamp_off = vnt_time_stamp_off(priv, current_rate);