From patchwork Wed Nov 2 14:08:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanjuate Brunostar X-Patchwork-Id: 14250 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp3645578wru; Wed, 2 Nov 2022 07:15:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7xKcc6VnN/dYOamR2PTBjBdM1/pidywD7u8RtsXCOueDJCiwHHWarTplKDfDBG3kqFFLkl X-Received: by 2002:a17:907:78d:b0:740:33e1:998 with SMTP id xd13-20020a170907078d00b0074033e10998mr24302116ejb.162.1667398511346; Wed, 02 Nov 2022 07:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667398511; cv=none; d=google.com; s=arc-20160816; b=xC4ig1FoiofgrMoOFxNn30Y6oZZQYuHaWXDG6Zvw7Q892EY8ZOFNyKEFD9AmVA2mTN E/lTzr8K4A6HUMoTTUdfQpCpByTzDslVT7DMOZ7KY5ebjl5HfmY6P93TUs5ydHfW8D/1 5PIAF50zv3Av/RQMY6NWVfcEnp/L2Q7NeE4pr1Er9cRg56fBWMEyU2gcbkhdK+h3zIxU ajEUWK/AQAM+XFD6Cn3aiddlWof+A9wjKGK/Jxf8CiB65oLRypErbl8rduoZrgBOfiUJ JpB1G1XLYeJawuQllSyuEEet+mUJGEGOkc5zqSQwLSjqKFnPfj3g5eWhjeh7QlJge9zk 2uQA== 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=xGATexOV6vnPuB2p8dA7jNyMLlzx3cNJwqnDQnqy0Lw=; b=y2A/a6c4Nxj3JeNxpZI70tpfCxcSpHKNOe0J0r5dUyP59DyrOBYg6+jJrSOSG9aJG1 h2oPwq6aZ6xisyDNIrF/qfPvzbVyiULovfXjIT5kXVX5Ttt4bHw/7AgGDKT89iNc6Mwm OZMCMN2nCXe5qxF+vNSMyawr/WRT/tDHN0t0SuA675Dm4bkO0L9ixyRQoNIo/CozG7y5 sGTnkMw7KXBW8BcpB7AoMo3Op3EjzZKTWKKx1TJrl2b8Sl4sWC001ccKRTV2J5Zpu1c4 voRFPO0gJiHHhCMntXXXHbCO3CDZjtFqyM+Hht4/1HfoPxxDxL5HQogW2WAEVbZQ9Lna W8Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=QWREUQ+M; 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 qw27-20020a1709066a1b00b00787d08d5ff4si16989932ejc.695.2022.11.02.07.14.47; Wed, 02 Nov 2022 07:15:11 -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=QWREUQ+M; 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 S231316AbiKBOJZ (ORCPT + 99 others); Wed, 2 Nov 2022 10:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbiKBOJU (ORCPT ); Wed, 2 Nov 2022 10:09:20 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D829D11B for ; Wed, 2 Nov 2022 07:09:18 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id b2so28417678lfp.6 for ; Wed, 02 Nov 2022 07:09:17 -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=xGATexOV6vnPuB2p8dA7jNyMLlzx3cNJwqnDQnqy0Lw=; b=QWREUQ+MIJRrxRHUnzmPUZtlJTHGq5/FaclL+DWpDyQxxqT/i5uu7XBDF76Uu6ajEe mf70HZLIapmkvb4+0bHS/y5X4Kt5QNaT90iNT8cn28CK+wWYVDGLODeERdzPjDn6nH8B xUYbtJoJPPwm6imgVr85phnsbZZk3C8HA9iC4Nj7zscE/OmRpEpJanP2ikBDWsnw9hZs YEQt4G3pLPP444oE9TZgGXFi9iTY9WDNZryx2RPXh52I3SsiCVBOpRoLHitQyCK2DOon OtjJeEIAEk7eCAw3CVyFjTKe9Rm2NWBIbH0HI5ovY68pGGKOF9QZPBgikz9KAmh1lOum iDsA== 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=xGATexOV6vnPuB2p8dA7jNyMLlzx3cNJwqnDQnqy0Lw=; b=p0E8htpetoA9J3QWAZniezrUDMeuyYNNBEdRaztsIzFaE8VTerCI80yQ7xLal3jkNP zj7znMCj39x9jhFJm+cxj6/29eJSEZOfJvo4Ag6NTKPPK482yaDi4tWyNWZOMg60UZzM VuZIGjoLoeWCDgaW48W3A1ps9IMlbEf5KjvZqzS8s5nL+utcFLHDi/q1DkxgGHovNvcL 3HLa8G/2m2wyZ4u7Dj+v0Hl/P5Hljfl91Su1Zul0/cWcpqptaeWEyKO5UEGz4jQsm5fS G5R8P0MgrgBDQAruvwjpt0Th3wDSmafDFHkbKR7jp7KhWTXaEYgl+ifc2KxyEa9xn/Sd j2dA== X-Gm-Message-State: ACrzQf3r/X7irzg/30a7K+GLKgup4SRLZ/mHC+2K64KJDKzgZsqcHCJk SLhj8IPMZ/ChpvBYBJApGHI= X-Received: by 2002:ac2:446b:0:b0:4a2:7e14:933d with SMTP id y11-20020ac2446b000000b004a27e14933dmr9134935lfl.338.1667398156338; Wed, 02 Nov 2022 07:09:16 -0700 (PDT) Received: from elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net ([20.240.130.248]) by smtp.googlemail.com with ESMTPSA id bj12-20020a2eaa8c000000b0026e0434eb1esm119503ljb.67.2022.11.02.07.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 07:09:16 -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 V4 2/2] staging: vt6655: Join some lines of code to avoid code lines ending in ( Date: Wed, 2 Nov 2022 14:08:48 +0000 Message-Id: <1026afe9c4c358b7b8a9fac62833ee62d2f4f9b5.1667397591.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?1748394061652187262?= X-GMAIL-MSGID: =?utf-8?q?1748394061652187262?= Fix checkpatch error related to code line ends with a '(', by joining some lines and indenting correctly. This improves visibility Signed-off-by: Tanjuate Brunostar --- drivers/staging/vt6655/rxtx.c | 40 ++++++++++++++++------------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index c01fc1a593f3..debc5d5daede 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -85,15 +85,15 @@ static const unsigned short fb_opt1[2][5] = { #define DATADUR_A_F1 13 /*--------------------- Static Functions --------------------------*/ -static void fill_rts_head(struct vnt_private *pDevice, - unsigned char byPktType, - void *pvRTS, - unsigned int cbFrameLength, - bool bNeedAck, - bool bDisCRC, - struct ieee80211_hdr *hdr, - unsigned short wCurrentRate, - unsigned char byFBOption); +static void fill_rts_header(struct vnt_private *pDevice, + unsigned char byPktType, + void *pvRTS, + unsigned int cbFrameLength, + bool bNeedAck, + bool bDisCRC, + struct ieee80211_hdr *hdr, + unsigned short wCurrentRate, + unsigned char byFBOption); static void s_vGenerateTxParameter(struct vnt_private *pDevice, unsigned char byPktType, @@ -555,19 +555,15 @@ s_uFillDataHead( return buf->duration; } -static -void -s_vFillRTSHead( - struct vnt_private *pDevice, - unsigned char byPktType, - void *pvRTS, - unsigned int cbFrameLength, - bool bNeedAck, - bool bDisCRC, - struct ieee80211_hdr *hdr, - unsigned short wCurrentRate, - unsigned char byFBOption -) +static void fill_rts_header(struct vnt_private *pDevice, + unsigned char byPktType, + void *pvRTS, + unsigned int cbFrameLength, + bool bNeedAck, + bool bDisCRC, + struct ieee80211_hdr *hdr, + unsigned short wCurrentRate, + unsigned char byFBOption) { unsigned int uRTSFrameLen = 20;