Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp192007imi; Wed, 20 Jul 2022 21:06:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNqAQ0JQBBdjmOUKvNgtWz30kvRDhC44JH1HoY1WhRni2W7A+soI5OHORP0maJ+vMVrwTX X-Received: by 2002:a17:906:8cb0:b0:72f:367e:9986 with SMTP id qr48-20020a1709068cb000b0072f367e9986mr16167683ejc.80.1658376376215; Wed, 20 Jul 2022 21:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658376376; cv=none; d=google.com; s=arc-20160816; b=jZoEUHhFg5FhbA6FrZqrHCqYM6JNP0F6GAs3lWnhfMhUfq3Ke14sIfZaxjAVIeS1UQ hcKiD9ulFnjVPLdy3jB8WBgexx4qNlR6AZI/xfDe5tCpJh0tR+gMEAFMWj3dUqj6llM/ lE5wl7JbcyZmBwr9q4itSxpkqub8rN1/4BbRwxvecrP66sLQ8/xKKBy/aqQT4RHDr+Ti ZbFP2vqJDkl6A43eD0WHA84YdybFhmE9edeNLzg8lHBP0K46JougifUslJT3MGWxVZ54 0cPRqKy1MADOkqGJR9+lE5YE7nsOyFBI/lR996xA8sS47dkg5WDEfph4L3fV9oxU/cqj Rh6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from :dkim-signature; bh=QQW5nE25CHVm8VEawfIVGFUrSWUWqh3HmVxegFkvxow=; b=kIMEk+ijLwN/QZiT/Ykt0H9jPLDp4bOubS67276sF74BWS+WgjyhStZkySHc6zlR+G eD4Go1l2TLmV2/7Z8aV7B4Qf4fS9PXofRDlv8wNODV8+VykVUswzJQeeBhUio75LDEtA 4SPi2ZK7+VQYAWkDo9BDwk5GPBT9Lgr3hLnx4wV4s9j5NBJo8WLRswoIgvK2ZCO27daj 1rb1XZBgb2eNFpSX3+v1ALPJp7R4Yvy6sdDi5efgRD6dH6A5M8mFdxDOlUxZCyQNCPwm JSgKEchs5lHkFTWWzQOFdUysVVnhFvxBnh28uwgkOY7ZHz3X2mFl0N83s+SwOm+FI7eu IEzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=AYuJZr9w; 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=fail (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 eb13-20020a0564020d0d00b0043795656e7dsi1008553edb.463.2022.07.20.21.05.50; Wed, 20 Jul 2022 21:06:16 -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=fail header.i=@gmail.com header.s=20210112 header.b=AYuJZr9w; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbiGUDwa (ORCPT + 99 others); Wed, 20 Jul 2022 23:52:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229787AbiGUDw3 (ORCPT ); Wed, 20 Jul 2022 23:52:29 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1E123B946 for ; Wed, 20 Jul 2022 20:52:27 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id gn24so431820pjb.3 for ; Wed, 20 Jul 2022 20:52:27 -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=QQW5nE25CHVm8VEawfIVGFUrSWUWqh3HmVxegFkvxow=; b=AYuJZr9wq2go3piCOFO2k1Pw5/5FV6UFo2QcmlLsio85wLlePB6xgeL5y1mi/ZYfVG o8Tu5bvNHfkF66i9EJqK+czFjzBiNdmurhKhAN8YDZbXGPbSCU0ZOVkaUZ4XLCfrKxyL 3JfBFgFmHa8Jh8f9MP9E6YftNsRHNXrC4loOfvrdwOunuuj8fOnn31yKS16Zz89BXlde R4GhLlZdpbJZ686WGgG1P+HaCZ2BZK4WFDFzkZi2lWQrMj1saM79mvJt/ThvjuCrxINm ruFsh697yY4X41oZhMX0A77dByb6gVn0m2E9tUfpF5dLTk97a4hAqO7fz8M5KYUm0hjd TiLQ== 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=QQW5nE25CHVm8VEawfIVGFUrSWUWqh3HmVxegFkvxow=; b=nweAjluMFiVj0soh9tYrJAt4Ios2r3dncDUPFyqvbY3w9zTzypVCsNvi12/boR7fhn /mbh1vMcw4Z5Jcg2shFRTd0V3oaUIKr2WYzBE+nmXeUjLZ0b55LMF9hJ7gHNG2mxgGZ6 WWE3KnO6/rCbvlpVxVrXcAzR3jZGlY3/sYhKM0G2T1058++ZHK6cXDzRbHKJc+dJfioT VliI2MkrcPle7g+PFFTFBngE+kMRqH6FPqjsZGKHH5j/aYODJWZUQ8fgD0Exu7Y8/68X YVYAuY2xiMy3S2YWT3QsyZI3qcZOVfub5hfxRsPK6lsc6jNtP2qIMPMo4E127m3TadGS xDQA== X-Gm-Message-State: AJIora8R1i3UiYu3ijz9dXDrozpMt5pctcVBOLVU3w2HIN+I510f5xaV M1QxDi4zv/d1eqGxoMJlfE8vQSzrTiTa86ECd20= X-Received: by 2002:a17:90b:3909:b0:1f0:386e:c0a1 with SMTP id ob9-20020a17090b390900b001f0386ec0a1mr8937588pjb.64.1658375546989; Wed, 20 Jul 2022 20:52:26 -0700 (PDT) Received: from localhost.localdomain ([2405:201:d01c:7038:d847:8f04:2f5c:26b2]) by smtp.googlemail.com with ESMTPSA id b13-20020a170902d40d00b0016d231e366fsm373879ple.59.2022.07.20.20.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 20:52:26 -0700 (PDT) From: Abhijeet Srivastava Cc: abhijeet.srivastava2308@gmail.com, Larry Finger , Phillip Potter , Pavel Skripkin , Greg Kroah-Hartman , Michael Straube , Rebecca Mckeever , Martin Kaiser , Vihas Makwana , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] staging: r8188eu: Inserted empty line after declarations Date: Thu, 21 Jul 2022 09:20:39 +0530 Message-Id: <20220721035146.11719-1-abhijeet.srivastava2308@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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Warning found by checkpatch.pl script. Resending this patch after correcting my Username Signed-off-by: Abhijeet Srivastava --- drivers/staging/r8188eu/core/rtw_cmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/r8188eu/core/rtw_cmd.c b/drivers/staging/r8188eu/core/rtw_cmd.c index 5b6a891b5d67..6fbf6e4234cf 100644 --- a/drivers/staging/r8188eu/core/rtw_cmd.c +++ b/drivers/staging/r8188eu/core/rtw_cmd.c @@ -25,6 +25,7 @@ void rtw_free_evt_priv(struct evt_priv *pevtpriv) while (!rtw_cbuf_empty(pevtpriv->c2h_queue)) { void *c2h = rtw_cbuf_pop(pevtpriv->c2h_queue); + if (c2h && c2h != (void *)pevtpriv) kfree(c2h); } @@ -323,6 +324,7 @@ u8 rtw_sitesurvey_cmd(struct adapter *padapter, struct ndis_802_11_ssid *ssid, /* prepare ssid list */ if (ssid) { int i; + for (i = 0; i < ssid_num && i < RTW_SSID_SCAN_AMOUNT; i++) { if (ssid[i].SsidLength) { memcpy(&psurveyPara->ssid[i], &ssid[i], sizeof(struct ndis_802_11_ssid)); @@ -334,6 +336,7 @@ u8 rtw_sitesurvey_cmd(struct adapter *padapter, struct ndis_802_11_ssid *ssid, /* prepare channel list */ if (ch) { int i; + for (i = 0; i < ch_num && i < RTW_CHANNEL_SCAN_AMOUNT; i++) { if (ch[i].hw_value && !(ch[i].flags & RTW_IEEE80211_CHAN_DISABLED)) { memcpy(&psurveyPara->ch[i], &ch[i], sizeof(struct rtw_ieee80211_channel)); -- 2.34.1