Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1497632ybv; Sun, 23 Feb 2020 08:07:48 -0800 (PST) X-Google-Smtp-Source: APXvYqw5BzhNOmbJtUZ4V5bGzcO00m0kH+CWItjibQkPRiwsbXq6X1tKAMQAAtBXdU/0U0HKJp7/ X-Received: by 2002:a9d:7f11:: with SMTP id j17mr39308627otq.281.1582474068492; Sun, 23 Feb 2020 08:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582474068; cv=none; d=google.com; s=arc-20160816; b=ru9w36SWsFZgxrWfVCOWsUxG5eTxhetPvATJv3yN5LMf07eWBL6bHIMPQfLwNaDRZ+ 4vaL2Ta25tnH4fjg7/ftk/2sOwtKYC/tPGQkszjx+CnL1zRyi/Lu61L+mDhWg+HY2Ni7 lVGTHrNZaV5xdjTxF9jWGhuL1VVTR0wBOG3cD0v2duxXSmH2tMpAZ96tAuhuL/1WdGGT CcY3q/ReRYvBnSOFCCdjR49ErwuqB6/+b3DJDwoeEvSNA41rIsEEXpWIh3pqAIs2E2vV QzTr/DfIBEeOnzNE15FC8DBxmEBgTlkPQdxTKYkkpHNtR8b0SVnOUwKprqro0eLEpQLa 1zBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date; bh=gYLsevcIucL2P6SBgZtPVzJEK70yaXAi8wpHmUQ1Dw0=; b=xIStSHgVAOrIu3/KM0PP7suguZKT3OejjwOFVtBssViUCo1WP2znSpGgVrf5Q+BU/O neqyva5L+DcS3IhlgNvlX6UDy9QttKHb2KWZCpPFkHD2tgmWpsYnG1kVB6MX+ww67bZl sXkQwQGk6z3O0A8y9jNnn8gaO4kRzurjKU1Vu88gHm8ePhTR8zgn+F0gnvSo7wajwkFH TwUjUE6HFbOpbebwt4eXx4N5RMHNUENceviQx0LsjeLHueRPnen2yiNyV8NN67klZ67A 95OFzG0gieYZo9FGNls/zTGXEt0oaMRuaYKDTumAN91YS4HqDTg7bQo/127+TV4uBpOn 654g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 73si3772802oii.60.2020.02.23.08.07.35; Sun, 23 Feb 2020 08:07:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbgBWQGd (ORCPT + 99 others); Sun, 23 Feb 2020 11:06:33 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:45546 "EHLO hera.aquilenet.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbgBWQGc (ORCPT ); Sun, 23 Feb 2020 11:06:32 -0500 X-Greylist: delayed 354 seconds by postgrey-1.27 at vger.kernel.org; Sun, 23 Feb 2020 11:06:32 EST Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7BAAE1B46; Sun, 23 Feb 2020 17:00:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pIxNazIaEtLK; Sun, 23 Feb 2020 17:00:35 +0100 (CET) Received: from function (lfbn-bor-1-797-11.w86-234.abo.wanadoo.fr [86.234.239.11]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 397E69C3; Sun, 23 Feb 2020 17:00:35 +0100 (CET) Received: from samy by function with local (Exim 4.93) (envelope-from ) id 1j5te7-005TFX-Gy; Sun, 23 Feb 2020 16:58:19 +0100 Date: Sun, 23 Feb 2020 16:58:19 +0100 From: Samuel Thibault To: Colin King Cc: William Hubbs , Chris Brannon , Kirk Reiser , Greg Kroah-Hartman , speakup@linux-speakup.org, devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: speakup: remove redundant initialization of pointer p_key Message-ID: <20200223155819.hycmdvrsiid27jeg@function> Mail-Followup-To: Samuel Thibault , Colin King , William Hubbs , Chris Brannon , Kirk Reiser , Greg Kroah-Hartman , speakup@linux-speakup.org, devel@driverdev.osuosl.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200223153954.420731-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200223153954.420731-1-colin.king@canonical.com> Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Colin King, le dim. 23 févr. 2020 15:39:54 +0000, a ecrit: > From: Colin Ian King > > Pointer p_key is being initialized with a value that is never read, > it is assigned a new value later on. The initialization is redundant > and can be removed. > > Addresses-Coverity: ("Unused value") > Signed-off-by: Colin Ian King Indeed, thanks! Reviewed-by: Samuel Thibault > --- > drivers/staging/speakup/keyhelp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/speakup/keyhelp.c b/drivers/staging/speakup/keyhelp.c > index 5f1bda37f86d..822ceac83068 100644 > --- a/drivers/staging/speakup/keyhelp.c > +++ b/drivers/staging/speakup/keyhelp.c > @@ -49,7 +49,7 @@ static int cur_item, nstates; > static void build_key_data(void) > { > u_char *kp, counters[MAXFUNCS], ch, ch1; > - u_short *p_key = key_data, key; > + u_short *p_key, key; > int i, offset = 1; > > nstates = (int)(state_tbl[-1]); > -- > 2.25.0 > -- Samuel j'etais en train de nettoyer ma souris et le coup est parti... -+- s sur #ens-mim - et en plus c vrai... -+-