Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4473353iog; Tue, 21 Jun 2022 22:12:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v/xe5PqEyq/UtX8TWL5P0pcZ4Aty2cQuePO8iQ0JJPEjOu9WUIQFgvzZZTE68QIEBgSLTf X-Received: by 2002:a63:135b:0:b0:3fd:876c:975a with SMTP id 27-20020a63135b000000b003fd876c975amr1447286pgt.538.1655874740559; Tue, 21 Jun 2022 22:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655874740; cv=none; d=google.com; s=arc-20160816; b=wB9ld8UodmvEY6NjWMmDh62MY3xSCIsJBxNHvog+U+KVP236QNfozD4G/2nKs9dZkO wCIC//BsQOUlhrmfLTQOdAc61KjUtljUyAkFTTySq1ueB4sAemdkL+EyJeyT3ZvuqUdz 88LDo3mv1jh+xs4YIN4XmEdY3s9MX8aHoQvavWplMZdVCADXZeDeAi11wU7qbnUcRmkV +dw8+1bb+nthQcKO8ietxUPyCy51T4xlFIrSIfWc32QGnZ/Kmn3+Eo3zNB4TOV7r0bPo AKKuUpnTwBut4ox/0UnR1ltc2ui0dsuDLLZOmVb+QZfPqRi7zLtiFDsBQ5UM5rU//9Fs f8zQ== 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=miDHh8TIXvhG9iaGpB6jefg7h3ay42uNe8cnWKGwUNM=; b=Dcv342hDdUHTC8o2FQe3YiK9JyE4N2yjevCGnPvt9E1d6YXFgjCM9V9CoRk+W6XXbd BgtgJOA74KMncrM0ftWd5XMy0px0uojnwP0AgG0W4QARuIZtqezGvuluxWTcwshRJSU6 lKtXzFm/A3U3ulFUQOA/U2SaTKww9lcbABO2CbC2d9iBx9R4DE9Jb/cW40vbolZGVa3j BNY/1Rg7z85Tytco0BuyLsnhhI6yRfkNGeJwMJDizgE9TuK/REoJrF6OonR+hf4Yw1Lp waStY/ZDKFb11w5gtK9dhuO66yXP7z0QgAIUVk9m8NmgVHJK6uHODQWQnPMWGu/gEehg gPsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=H6++axkv; 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 ku18-20020a17090b219200b001ec9759c171si11932122pjb.35.2022.06.21.22.12.08; Tue, 21 Jun 2022 22:12:20 -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=H6++axkv; 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 S1356983AbiFVExP (ORCPT + 99 others); Wed, 22 Jun 2022 00:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356930AbiFVExL (ORCPT ); Wed, 22 Jun 2022 00:53:11 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BED46244 for ; Tue, 21 Jun 2022 21:53:10 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id 128so8018835pfv.12 for ; Tue, 21 Jun 2022 21:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=miDHh8TIXvhG9iaGpB6jefg7h3ay42uNe8cnWKGwUNM=; b=H6++axkvJgfmn6n3LaeDwik2qAP91cPX6DQctcDvpgU3kkAk+jCelu+FO8wdZfLNNB lWha5g2gfEYAMNBiq0hhdWD1na1d8OkqCzZDpAbTYFDDZVY/G6rnJm1Y3AScVQh9Sefy lPVxWHIQr8NYwfAgTKHBff33VgMiO6xNmpeCSNSlhuxLO6Qgzb06148N5XO3OiTSnNhz uEizQwa/LOb6D9DOL4HzowJ/L9MluKz7prOYrjE9/2osMcc9dB7AxEt5UmeiuBROsT6n 5MI30fGl5UC8/n4ypmTGfhzlcpyG22lrgjnk7WZUdTqIt0iQP0qNS+Q+1hBD9DNYmKmB 3NSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=miDHh8TIXvhG9iaGpB6jefg7h3ay42uNe8cnWKGwUNM=; b=ee+xR9akKp9oLSPHW5q7Rp2Nzj+gKdEuSvYrWg8CCVupdlMWWp5AY1BpJTnse2IRr5 /tdpavPbve81EPiNyYFpiQVHil++R+UKkggsoonJXVRWL8JPxgzH4bGLSKgfgdXedqxL wm3fwnyVJlDOFRoDscAOcsFrVKbFQr2Y1DPodFEXT6oV9Ec6ZxASZmhuJHguqqIzNxy2 gs4YXMDSpn7LPh12DCGr6N9fpuTLioenMs+74otFtNAmTSnnArFRMWTAc3kzlwI/nNIX Pz4K68zBb4vnVN2mLejI2QtM/DXZNET/XZwGrKrWLqoYkQGeftjnZVPf1sK7/dTafzga cRRQ== X-Gm-Message-State: AJIora9ypN6YQkHmNOfZhbfHjmu07DffOTagea2p/Y8beY9n2ajawUQw Brk9Cgtabu6s4RXVfFpXCQgG/d8A+SpK1A== X-Received: by 2002:a05:6a00:16c7:b0:520:6ede:2539 with SMTP id l7-20020a056a0016c700b005206ede2539mr33230812pfc.46.1655873590035; Tue, 21 Jun 2022 21:53:10 -0700 (PDT) Received: from localhost (c-67-180-87-133.hsd1.ca.comcast.net. [67.180.87.133]) by smtp.gmail.com with ESMTPSA id j2-20020a170902da8200b00163e4410b82sm333812plx.239.2022.06.21.21.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 21:53:09 -0700 (PDT) From: Chang Yu To: Larry.Finger@lwfinger.net Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Chang Yu Subject: [PATCH 2/5] staging: r8188eu: Fixed two brace coding style issues Date: Tue, 21 Jun 2022 21:52:31 -0700 Message-Id: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 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, T_SCC_BODY_TEXT_LINE 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 Removed two pairs of unnecessary curly braces as per checkpatch.pl Signed-off-by: Chang Yu --- drivers/staging/r8188eu/core/rtw_recv.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_recv.c b/drivers/staging/r8188eu/core/rtw_recv.c index 7e2f5c2f9111..38b7905dc88f 100644 --- a/drivers/staging/r8188eu/core/rtw_recv.c +++ b/drivers/staging/r8188eu/core/rtw_recv.c @@ -1365,13 +1365,12 @@ static int amsdu_to_msdu(struct adapter *padapter, struct recv_frame *prframe) a_len -= nSubframe_Length; if (a_len != 0) { padding_len = 4 - ((nSubframe_Length + ETH_HLEN) & (4 - 1)); - if (padding_len == 4) { + if (padding_len == 4) padding_len = 0; - } - if (a_len < padding_len) { + if (a_len < padding_len) goto exit; - } + pdata += padding_len; a_len -= padding_len; } -- 2.36.1