Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1335069pxm; Sat, 26 Feb 2022 12:08:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGRoTBi3UikLSDnlI7NpC92MSpzIe8R1M+4nWiu69aZYxUDQuNH/qn+7tJNdYRzyhENHJj X-Received: by 2002:a63:40c4:0:b0:376:c130:4ebd with SMTP id n187-20020a6340c4000000b00376c1304ebdmr7858970pga.301.1645906113401; Sat, 26 Feb 2022 12:08:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645906113; cv=none; d=google.com; s=arc-20160816; b=lhgH2DiOAuqkXN93RwvLJga7ftUiYZoruN2GHwnEBrf68xfTW/RURrhnLSVIjgL7Ck YTt5HXUKsDU1zq2ozj0qtbOQ0DG7wHII/nFuPaKhoBblak8SUtuairBFYluvpUAaSIhu m9y7vMAIqptpITreN3SyA9TooV3DmiwRzE52p/Q0qjiEumL728Kzt+zibHcfadAuqZ90 N8UVtNgPjzBnk3RbOc+ydWm81pgoJ6N954AIIFjo4tobcL7un/JrAFyBqtxrZQ7vk6B8 QX/tje1kuOa+aBcOzbBArJK/V3O6vv5wMdGE37fgGdhLNH2ikc2J5pdcDU92VDK/ZeJM U5Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=S6VT3HN2IRbsIi5o911BX4SW84hwNa5voGHttJrK4Jw=; b=PWqNZAunVoBfhS1HRa7E21+GJRdIVt3ocnBHR1bclw927WHrc0IAPkrthEQVO61IbY fIVLRz1IzDzXbDT0Ftcq/1yJPZ4u2tJnEOG8woLeviMtuKjZTkw0WhJFVTjLGy2iUoPn p9o9YSA7VnLTiPCTAmZZxHAloMTevbxv1MhBNt153HMWsheLz8gzda9Edv9yGswaesGf vGiJZehxhgJ04BlnJikQI8S1u1WXPmdccJahE/HN/YjFj+0VmEpjsebNqTCnEz+9Az1z M9nWOmcsRLl2W25YWkNYOlTQ9K/Cd0iBI8FtIu7hK5dCFuiwX0zyIu0LxPEXZo5IfTay oJpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hHgmboyL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id b15-20020a631b0f000000b0037865a72928si2665647pgb.444.2022.02.26.12.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Feb 2022 12:08:33 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hHgmboyL; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 98B532992A7; Sat, 26 Feb 2022 12:06:53 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232480AbiBZRdg (ORCPT + 99 others); Sat, 26 Feb 2022 12:33:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232468AbiBZRde (ORCPT ); Sat, 26 Feb 2022 12:33:34 -0500 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 642804926F for ; Sat, 26 Feb 2022 09:32:59 -0800 (PST) Received: by mail-lf1-x12e.google.com with SMTP id t13so2638506lfd.9 for ; Sat, 26 Feb 2022 09:32:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language :from:to:cc:references:in-reply-to:content-transfer-encoding; bh=S6VT3HN2IRbsIi5o911BX4SW84hwNa5voGHttJrK4Jw=; b=hHgmboyLosisGAkcLt2JhF9QgbqUC2scITXSxCRmvWU0ms2g75Lv7zM/Y08zHzjq1Y 2U+13GO5wi/KUVDIvlTLQiEAl+tpeSekXhkgJJnZ9CT3Tn9U1dCkT4OTIxqZ7fLXndAH iZhCs9Hn9KBVMsH5MSIOydfcvlQBCy85EEOUpfgBkZOYuPEnV3oC+yJhRhQkCu1OIps2 cGhI7LrMjJW6zXryu8TpQGXCMUkk5HB8fG43hOihfTTcaKGYzsWRgBK2b903+4Hb641m NailEuNwnNUcds46Ov1WulKolgGo96283HNjjfQklFVZq6gYWXAVYaaq087vLtT7j2EL RvGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:from:to:cc:references:in-reply-to :content-transfer-encoding; bh=S6VT3HN2IRbsIi5o911BX4SW84hwNa5voGHttJrK4Jw=; b=Tc1cr8eP8zC6JsPyTUmPWeisy8R24FJBB4YumvX0TzHj/xzGMXRpY+6nP96+eHlj7J I4DK/EAwOGrDFIhXZDUyo8YBy1wex9wbFlzbE8h2USbkPldT6Qs46iAbtWOVAMtefWCe CP63mzX7vXELh5YSIGLCS5NrKmv7RdshGIpHuTgfL0mTsFG1WDZei9soEBdQJ/ftK6pg rVkcCXw2tuL7hbyk6VPuh+Yg62+6b4cJ+uIi2Dh3RqNo3rItW2KuTJYuIw9mNmvTYWvf epDqOoXkn0YIw20pdaqVtH192TjRoQwFDXeHx/lMuTjK3WOaP1SSXSXV24+jEIrWCd/H izUA== X-Gm-Message-State: AOAM533eFTNZjUcalKnVlijSbje7GKlfces85L2lt52cl6Shuhuv15Lv GORlAhbZH9PC1rDzs92vM8w= X-Received: by 2002:ac2:4577:0:b0:443:fac7:d701 with SMTP id k23-20020ac24577000000b00443fac7d701mr8136269lfm.384.1645896777200; Sat, 26 Feb 2022 09:32:57 -0800 (PST) Received: from [192.168.1.11] ([94.103.229.64]) by smtp.gmail.com with ESMTPSA id b23-20020ac247f7000000b004435ff1ef17sm499218lfp.23.2022.02.26.09.32.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Feb 2022 09:32:56 -0800 (PST) Message-ID: <184f741c-60ed-fe32-5705-08f9769e926a@gmail.com> Date: Sat, 26 Feb 2022 20:32:55 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH 3/6] staging: r8188eu: cnt is set but not used Content-Language: en-US From: Pavel Skripkin To: Martin Kaiser , Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org References: <20220226144843.1118951-1-martin@kaiser.cx> <20220226144843.1118951-4-martin@kaiser.cx> <1c44c931-5b90-03d8-94bd-5e68682c4787@gmail.com> In-Reply-To: <1c44c931-5b90-03d8-94bd-5e68682c4787@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On 2/26/22 19:57, Pavel Skripkin wrote: > Hi Martin, > > On 2/26/22 17:48, Martin Kaiser wrote: >> In function recv_func, the cnt variable is set but not used. >> It can be removed. >> >> Signed-off-by: Martin Kaiser >> --- >> drivers/staging/r8188eu/core/rtw_recv.c | 2 -- >> 1 file changed, 2 deletions(-) >> >> diff --git a/drivers/staging/r8188eu/core/rtw_recv.c b/drivers/staging/r8188eu/core/rtw_recv.c >> index 0144c4642911..9a2e2bc2e294 100644 >> --- a/drivers/staging/r8188eu/core/rtw_recv.c >> +++ b/drivers/staging/r8188eu/core/rtw_recv.c >> @@ -1798,11 +1798,9 @@ static int recv_func(struct adapter *padapter, struct recv_frame *rframe) >> if (check_fwstate(mlmepriv, WIFI_STATION_STATE) && >> psecuritypriv->busetkipkey) { >> struct recv_frame *pending_frame; >> - int cnt = 0; >> >> pending_frame = rtw_alloc_recvframe(&padapter->recvpriv.uc_swdec_pending_queue); >> while (pending_frame) { > > Just out of curiosity: is this thing infinity loop? > Hm. This function is called only inside a tasklet. IIRC it's not ok to have this kind of loops in softirq context With regards, Pavel Skripkin