Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2182626rwb; Thu, 8 Dec 2022 21:43:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf486rxqEHJ+i9r0t+Q/ikxWLbNJlmzZqf9vA1LmygInDHYINdTmkWf/epkOMj+gOsPvQ+9y X-Received: by 2002:a05:6a20:3aaa:b0:ac:94a1:8afb with SMTP id d42-20020a056a203aaa00b000ac94a18afbmr4699523pzh.13.1670564622932; Thu, 08 Dec 2022 21:43:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670564622; cv=none; d=google.com; s=arc-20160816; b=MLaKNllHv6jw3FN8UIimBX9P9oBVZTRxQJJT1NG8F2gjB3qqDB6KjY3fSQgHJGWCli hQbUhxTK7vLvvK1WBJUfBLEjVMHSEMTytE9MV68TNlWMJjLNbdixkuaVujkkZuOMdm6i yMfMu2Qz1n/gFL1gk+8TsoZPOU+X+wy6HLkyPvtAHkqxk0h8wmg9AWWsxMuqDfGhgkPk U9Z2RCiWuQccR3OJUoIZM8UfyfdO3h6JPNY14ggYtCGGWjnNdTkBBMJU2eKYUt+zPbqF CKvKi6BHPt7E8By8R7me9HUg2QVZzqhyDAjv/Ul6TSUmUKscmrmMwudq6piUhKEXNzQg M/1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uz7Bcc822EFfPxGrky8TOBQ9h/2A70WOGkVr6YdmvoI=; b=CwKI2Y7rETDNoZdFA9grv/wntRE/mjJrKoOT/lizKkzvC7HBZpwE+oyyRG04MYDk5X uprHQZAbGxLQFzU+5E3oHjOfl2NcFQR4yU0nKb1oLjzrvtcciYw2hgGkLzSNyC1rwRaL QyIm4HEjcQU4PUmj9ZHaJvyT0vY9wKbXrqPbzC0QaQuE9XghbC3I1d9Gg+fZhJvWw662 1PuMnUnOipDf48FMnogoY5J3RCRTf0/IElW/uewNu3HAhOsXOWEpRgEM7x6we5yd6eDE DxJLFRSLpEIAZ+TjDL6LsFXiN/2J4STP4zwFKg/MhvnPj60td1ls0BdFvs4ks4WIiXnG Ts7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kpi3f9V9; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a630a4e000000b00476c6b9cf69si586421pgk.856.2022.12.08.21.43.33; Thu, 08 Dec 2022 21:43:42 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=kpi3f9V9; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229571AbiLIEyk (ORCPT + 73 others); Thu, 8 Dec 2022 23:54:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiLIEyh (ORCPT ); Thu, 8 Dec 2022 23:54:37 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C61EC7D05E; Thu, 8 Dec 2022 20:54:36 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1D70AB827A1; Fri, 9 Dec 2022 04:54:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C4DDC433D2; Fri, 9 Dec 2022 04:54:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670561673; bh=rSB5y5gfDM3Ow36b0u0/C60y2e6oDZ7NLUrrP88Fvw8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kpi3f9V9c4bdztR9nKSHWOL7zKOIZAXYwTHtMpKKT9o3KR5YV5pYfEzxZ1bRPWZiW xG78z0gPVMFgG++Kxgi1Ic7IbwUHNPufvT88q+LIS/fiF4tQi+Mn3HEGsLR7XQxJj6 edvJXJNDzp6fmSWq3dRUk/yHn9RBvPdqO1b3V4B5E7AqN/TGfGodFWR5wnZDTkdsen SXJefYARubHiyglRodLXiqJNo0MACwaBFAxYzh1oE0kCNifGP0qtNwQM9fVFFD1puR 3mttmyLek4N8hrvlRrgkAGDWO0EPcWZx+09tXEBNDCHEv1TO+gYCm6a5V3M6Drngir EseWRJJroxj7A== Date: Thu, 8 Dec 2022 20:54:32 -0800 From: Saeed Mahameed To: Jiapeng Chong Cc: wei.liu@kernel.org, paul@xen.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, xen-devel@lists.xenproject.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Abaci Robot Subject: Re: [PATCH] xen-netback: Remove set but unused variable 'pending_idx' Message-ID: References: <20221209034036.37280-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221209034036.37280-1-jiapeng.chong@linux.alibaba.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On 09 Dec 11:40, Jiapeng Chong wrote: >Variable pending_idx is not effectively used in the function, so delete >it. > >drivers/net/xen-netback/netback.c:886:7: warning: variable ‘pending_idx’ set but not used. > >Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3399 >Reported-by: Abaci Robot >Signed-off-by: Jiapeng Chong Reviewed-by: Saeed Mahameed Please mark your patch clearly with [PATCH net-next] or [PATCH net] if it's a bug fix. Thanks for the patch.