From patchwork Tue Oct 25 23:37:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanjuate Brunostar X-Patchwork-Id: 11011 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1275844wru; Tue, 25 Oct 2022 16:40:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4t4CONLxkbLHgcAURnTyqp2ckkurTu57W8hy1BBu1nkFj16fj+5n+aIFEchdpnNexGhmvu X-Received: by 2002:a63:4243:0:b0:439:2031:be87 with SMTP id p64-20020a634243000000b004392031be87mr35159026pga.592.1666741209970; Tue, 25 Oct 2022 16:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666741209; cv=none; d=google.com; s=arc-20160816; b=DefIhuwlKm6H1Ert2DxX9DieFfVZqeK2xjLsrbhWfcINsaImeUlvy5/1BYCwPGsfYo 4Hhxo4in32x2ZJsR1t0PSJRwzMPqsM8A9lV71eMhmDfq11inA80DpA6TVJHGZRpROS42 FFmvH4480Um97va/wI1j8FUJU9IOsCP5oZK0bCGGM7einc/74fzQ+hi4md/KlGOjpqRc oUhzvEW78G9kZHMxVbNXPsDRAMLg6jbRwDdskObtx+hkWs4Duj5bWqPiSNpV5JSRQY59 utuXAVYzhbcAjixANEJi9OuDt6+xNogf0mlL9/ZDNtGLn1AMwF4DP1Wrsej6dyqJ5aXe hYkQ== 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=I/urUot3cNFITmccYXucAWbb6h0aY9AK/ky19fLze9Y=; b=umpOfcph05WN9jJOGrMO7uu8PB80Q0bQkXL4S3Jw+v1YCbH4Fp4JcItVItz3cR9Wjp dJ1PFTss2zcxAUCgyHMxa0lXNyu4uAK1jgTXyIai+u56pReob7TU6Vm3vejbLZuTjZsW uVZR4d1/Z7PcGTf941kwZpxtkmWlDfZTETLhoXi7oUiHkqnsMABkGi4oaYRukW4cRIPy fGOVNB5QfKsa/3eiygZj7w4v9/n7IVvV9fClhIynE3Mkbg4DHdeq0ckKu/eLdjMhxbeQ n1lUCSRxmQoVmIbacsP5VCvZ7R6Yn5arSO1jSkkD/gBm1NV4LjUbPvpoLNDhLvmoTaIu BRDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eW2kzFNF; 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 3-20020a631743000000b0042aff6e2846si4631890pgx.251.2022.10.25.16.39.56; Tue, 25 Oct 2022 16:40:09 -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=eW2kzFNF; 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 S232949AbiJYXiS (ORCPT + 99 others); Tue, 25 Oct 2022 19:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232883AbiJYXiE (ORCPT ); Tue, 25 Oct 2022 19:38:04 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EF36FC6DB for ; Tue, 25 Oct 2022 16:37:56 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id j4so25419571lfk.0 for ; Tue, 25 Oct 2022 16:37:55 -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=I/urUot3cNFITmccYXucAWbb6h0aY9AK/ky19fLze9Y=; b=eW2kzFNFulbHPkEY7L5bBP+QwQ3W37hMKKPg0Qaeboh3BrZ7/uL6LUSZ5FFptG3XZ7 NS0PqiWbQ0EeEyzfFWoobh4lME1DosqR8XHU9m7mu6pU6vZ8NSUAEhR/II8EQWim5kV/ mlkodIg0psVC7jLm+cbtiapnCeeN9shZyLVNC7THLMoMeS7K55gHiALm2PyiMS4uuuFx prQqbGpXyuSFdPNDnrayMe4jyat+D0Tde7eiRJF05I16Z1bObQaouZ0GYffCCkrEsqrU BmcSqY7wTbf3sJNdSjSKZZHcFSawKk8h+J1MpiVfycLoeeLa7FrB92I7AGmZHky8Y20B bMHg== 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=I/urUot3cNFITmccYXucAWbb6h0aY9AK/ky19fLze9Y=; b=bRh9gZzT5yPG5fdDHFe/rCnW7EgDTG6ynmBq2iYJOhVmkUriP5lZi/o40OB+kuQ2fv DqavJvEg9trguXkrnYB2Co5l+9+te880tpOglxO4mN7R/zLpSE7Qjpng1ZB6UdunfLEj vqlD392CAlh7Nw1oc6kQXfZ69NY3GO00yfVZbWEY8AG22qGOb7br42Ueea0Ympgmkf/d Jb4SpB99ZGnaVrfpmOm12zHQQqLzhXQom5K7Ro9rpBTCA++hInokTSfgTBVQN3aKpbLT AV8b95PUH07pu7iV/fgRSFR3uhAZjNTD6EMs6O6+Sbc/s2qd/nlkPodohNt7JqCTmxbD OmHQ== X-Gm-Message-State: ACrzQf3jT9GG7PHiTy4PsUBZSinFLdBNEnwU7w2GUTiXv31EgmAThR/a bYoQO7V1CmwssKjuSq5irOs= X-Received: by 2002:ac2:4a6b:0:b0:4a2:46f7:93f1 with SMTP id q11-20020ac24a6b000000b004a246f793f1mr15337574lfp.675.1666741074451; Tue, 25 Oct 2022 16:37:54 -0700 (PDT) Received: from elroy-temp-vm.gaiao0uenmiufjlowqgp5yxwdh.gvxx.internal.cloudapp.net ([20.240.130.248]) by smtp.googlemail.com with ESMTPSA id w17-20020a05651c119100b0026daf4fc0f7sm701969ljo.92.2022.10.25.16.37.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 16:37:54 -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 08/17] staging: vt6655: changed variable name: bDisCRC Date: Tue, 25 Oct 2022 23:37:04 +0000 Message-Id: <45a1de2d980f814ccc7e5c3932e4084d4d057f9e.1666740522.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?1747704830780412593?= X-GMAIL-MSGID: =?utf-8?q?1747704830780412593?= change variable names bDisCRC to meet the linux coding standard, as it says to avoid using camelCase naming style. Cought by checkpatch Signed-off-by: Tanjuate Brunostar --- drivers/staging/vt6655/rxtx.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c index 1949a647a443..cb6d915fe7d0 100644 --- a/drivers/staging/vt6655/rxtx.c +++ b/drivers/staging/vt6655/rxtx.c @@ -90,7 +90,7 @@ static void s_v_fill_rts_head(struct vnt_private *p_device, void *pv_rts, unsigned int cb_frame_length, bool b_need_ack, - bool bDisCRC, + bool b_dis_crc, struct ieee80211_hdr *hdr, unsigned short wCurrentRate, unsigned char byFBOption); @@ -628,7 +628,7 @@ static void s_v_fill_rts_head(struct vnt_private *p_device, void *pv_rts, unsigned int cb_frame_length, bool b_need_ack, - bool bDisCRC, + bool b_dis_crc, struct ieee80211_hdr *hdr, unsigned short wCurrentRate, unsigned char byFBOption) @@ -638,7 +638,7 @@ static void s_v_fill_rts_head(struct vnt_private *p_device, if (!pv_rts) return; - if (bDisCRC) { + if (b_dis_crc) { /* When CRCDIS bit is on, H/W forgot to generate FCS for * RTS frame, in this case we need to decrease its length by 4. */ @@ -820,7 +820,7 @@ static void s_vFillCTSHead(struct vnt_private *p_device, void *pvCTS, unsigned int cb_frame_length, bool b_need_ack, - bool bDisCRC, + bool b_dis_crc, unsigned short wCurrentRate, unsigned char byFBOption) { @@ -829,7 +829,7 @@ static void s_vFillCTSHead(struct vnt_private *p_device, if (!pvCTS) return; - if (bDisCRC) { + if (b_dis_crc) { /* When CRCDIS bit is on, H/W forgot to generate FCS for * CTS frame, in this case we need to decrease its length by 4. */ @@ -947,13 +947,13 @@ static void s_vGenerateTxParameter(struct vnt_private *p_device, unsigned short wCurrentRate) { u16 fifo_ctl = le16_to_cpu(tx_buffer_head->fifo_ctl); - bool bDisCRC = false; + bool b_dis_crc = false; unsigned char byFBOption = AUTO_FB_NONE; tx_buffer_head->current_rate = cpu_to_le16(wCurrentRate); if (fifo_ctl & FIFOCTL_CRCDIS) - bDisCRC = true; + b_dis_crc = true; if (fifo_ctl & FIFOCTL_AUTO_FB_0) byFBOption = AUTO_FB_0; @@ -981,7 +981,7 @@ static void s_vGenerateTxParameter(struct vnt_private *p_device, bNeedACK); s_v_fill_rts_head(p_device, by_pkt_type, pv_rts, cbFrameSize, bNeedACK, - bDisCRC, psEthHeader, wCurrentRate, byFBOption); + b_dis_crc, psEthHeader, wCurrentRate, byFBOption); } else {/* RTS_needless, PCF mode */ struct vnt_rrv_time_cts *buf = pvRrvTime; @@ -995,7 +995,7 @@ static void s_vGenerateTxParameter(struct vnt_private *p_device, /* Fill CTS */ s_vFillCTSHead(p_device, uDMAIdx, by_pkt_type, pvCTS, cbFrameSize, bNeedACK, - bDisCRC, wCurrentRate, byFBOption); + b_dis_crc, wCurrentRate, byFBOption); } } else if (by_pkt_type == PK_TYPE_11A) { if (pv_rts) {/* RTS_need, non PCF mode */ @@ -1008,7 +1008,7 @@ static void s_vGenerateTxParameter(struct vnt_private *p_device, /* Fill RTS */ s_v_fill_rts_head(p_device, by_pkt_type, pv_rts, cbFrameSize, bNeedACK, - bDisCRC, psEthHeader, wCurrentRate, byFBOption); + b_dis_crc, psEthHeader, wCurrentRate, byFBOption); } else if (!pv_rts) {/* RTS_needless, non PCF mode */ struct vnt_rrv_time_ab *buf = pvRrvTime; @@ -1026,7 +1026,7 @@ static void s_vGenerateTxParameter(struct vnt_private *p_device, /* Fill RTS */ s_v_fill_rts_head(p_device, by_pkt_type, pv_rts, cbFrameSize, bNeedACK, - bDisCRC, psEthHeader, wCurrentRate, byFBOption); + b_dis_crc, psEthHeader, wCurrentRate, byFBOption); } else { /* RTS_needless, non PCF mode */ struct vnt_rrv_time_ab *buf = pvRrvTime;