Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp200131rwi; Wed, 26 Oct 2022 23:19:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM60OUiUulLDLweglz6u54JcbsvW41E/93w/W84F7iDHIWxaUi3AIJjQ18WPc2lpWgg6+KsU X-Received: by 2002:a63:1d0f:0:b0:46e:e211:5433 with SMTP id d15-20020a631d0f000000b0046ee2115433mr21576938pgd.324.1666851575860; Wed, 26 Oct 2022 23:19:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666851575; cv=none; d=google.com; s=arc-20160816; b=k1uNBaQ7csCnSrrHR7hv6meTUefVLvfB7iM6up0LJTnNEtmPq26xt5hscV6v1+3GfA xtBVX6hsVX8uw8GShNaN9LiQS7WNzmeigsHKHk831OIEbhgdGYqgXDBCovv9jYOyMeI0 QQUEFPfiLggfz3+hKex6Ek0Saarxu9vh6GFnl0/zgVnc9B7v5i58UxB4RU7X+Ey7HGwg pOUHFvl7FksdhzEZTU0dxOSYjo8vYU1tP2Xz8erYj6AfCoGQEjQ0ympy/CRSzxZdkPh6 konytnhTzHEGEz+TYYRrzciQpXeAeAN4+6k5C2SMfU66KOxH3qKeYOUrtHoPeyX0YbSV evUg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v66-20020a632f45000000b0046ed54becfdsi600030pgv.30.2022.10.26.23.19.22; Wed, 26 Oct 2022 23:19:35 -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 Content-Transfer-Encoding: 8bit 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 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); -- 2.34.1