Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8643427rwb; Thu, 24 Nov 2022 02:18:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf5b8Ww9v6WNOFp6NCISp+XRQOKUNFVeDUmRFnaHxnB0XdmsS+ZbAsRhKph7o1FPdry91Qpe X-Received: by 2002:a63:1d62:0:b0:477:d018:ef31 with SMTP id d34-20020a631d62000000b00477d018ef31mr1623735pgm.287.1669285088384; Thu, 24 Nov 2022 02:18:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669285088; cv=none; d=google.com; s=arc-20160816; b=iGOs0S1estq5DE1q+pQNmTqkQ6MKT4FMuk/2G4y1PVxI6Im03YiRKGfEN/42DHIme6 CJMa+4JJcUWIcVbraejypjh+8qFe8aZzJ4Jm5h61JuPRAAeNOHwKWNBLRzUWTMB2EfXc HFVTBAHNaGvC6yGDPWdu5I9lHOpnun6F3XOdr63tH8DUukzanFJWwGSDMdw/0HSxf3Ov cqo6610c9Na5Z23khzrg5Tb3lXElotXbT8hP0ljIZ5keSLD2/m+p0rvjDYXHvOhns7EC +2xDslVo5a+cjc1Q+XLQoWagZc6fw4ueDuhcB+VKvPZ3W5xlCpBKGul1B37Ef7+gCbjk IF7Q== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=piy8I8ZhZQ5xiu6i/z5IXpu05UhE2/EsXiZIyeFu0Ro=; b=npECQ/YV5MPg+C4N8Zc5fK7ItfF/oI/GzY3qyJuYN7IW0wc6JyeIQ+ZIPN74MWoZnB OXXI5mxdZWKyKUNoHG2HwFihyilpa32bfJubz2qfUD+nErV6fkDq0wV8lV+glb6wT1pg LD9rnCa+tLEny37YTUcqJr405rFlOPzLFUD7UAH1ZCcC+hbJ/A6NCucK07W8T5ljdMFn zWYjhoReQudYJe2uFOtFnRx/lCnXsEZYQvrO0CKcthSgUfy6n93lJH0xNbvcOnWwg2EF GNOphxiTDXNmw9XO0bk7axYGhfVqCraxlg8D9v4Q4IAmE1fNIHoSI4XBR2pJvk/R2YuN TKzA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t14-20020a635f0e000000b00477529d73bbsi978103pgb.526.2022.11.24.02.17.56; Thu, 24 Nov 2022 02:18:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229677AbiKXJZu (ORCPT + 87 others); Thu, 24 Nov 2022 04:25:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbiKXJZt (ORCPT ); Thu, 24 Nov 2022 04:25:49 -0500 Received: from formenos.hmeau.com (helcar.hmeau.com [216.24.177.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C6AF11605A; Thu, 24 Nov 2022 01:25:47 -0800 (PST) Received: from loth.rohan.me.apana.org.au ([192.168.167.2]) by formenos.hmeau.com with smtp (Exim 4.94.2 #2 (Debian)) id 1oy8UK-000Muy-51; Thu, 24 Nov 2022 17:25:45 +0800 Received: by loth.rohan.me.apana.org.au (sSMTP sendmail emulation); Thu, 24 Nov 2022 17:25:44 +0800 Date: Thu, 24 Nov 2022 17:25:44 +0800 From: Herbert Xu To: Jiapeng Chong Cc: tgraf@suug.ch, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Abaci Robot Subject: Re: [PATCH v2] lib/test_rhashtable: Remove set but unused variable 'insert_retries' Message-ID: References: <20221123093702.32219-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221123093702.32219-1-jiapeng.chong@linux.alibaba.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Wed, Nov 23, 2022 at 05:37:02PM +0800, Jiapeng Chong wrote: > Variable 'insert_retries' is not effectively used in the function, so > delete it. > > lib/test_rhashtable.c:437:18: warning: variable 'insert_retries' set but not used. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3242 > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > Changes in v2: > -The condition for modifying err is less than 0. > > lib/test_rhashtable.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) Acked-by: Herbert Xu Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt