Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp653566imm; Wed, 11 Jul 2018 08:43:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdSrSVrikSoWYnkrklIuYHPjR1leVbrSr3CN4JJ9ERNVR5i1kEYtv/UsqUw1Xnb0NULmEBa X-Received: by 2002:a65:4c87:: with SMTP id m7-v6mr20573797pgt.98.1531323828693; Wed, 11 Jul 2018 08:43:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531323828; cv=none; d=google.com; s=arc-20160816; b=mN8nixV6SG/RfdR5p8hIpROcFBwv0F26tPuSlUcaigyRoy4RS62SpPQKVpEoZrQ3wb rzgp+gWpbnFwZUZPnrZKybC2C0OntALhu/B9vGliimx/LOtWSN/q0Rdc0WfWePXRVKKP 0ed379v7TK0abA7rhJaLhQB1YLzqpuv+XUFWrSHjeTWzVDNSPNHOHANiy+XhFxOQboMw 6QbdsDTao2MthuQqMJ5x1ymUZVPLVsQ+Vb9PAnBGRM+gdlo5Ytw6gR4Q/Fm71JdzcmHM QQB7goU+bF8Kxjv5TgUQ/yYWwg/jXEPxm6tVLOZqK8hLz4nfA44XvG2WqeyjT0AC+RS/ mBRQ== 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 :arc-authentication-results; bh=LkcGQPAgJzyN6EL+JqLVNKwutVBCk85WQYjGAuVboiM=; b=AtUHXFh7wO60ETnn63sVPYFdJzrOFiYMBGOJsDcfyxue+maUk4dOM/GLrswfKTPf2L /aCdS5mAkiOTKjb8pfYCWQ4w11ENFFd51Df99hKjOi5AwwQ8W2YjeaIc/4TQpYq+NDi8 6bmiOPwLy6bnNM/MmVB6xlH4kab5kmdRHFkYnSZtx+FOqcc8CZcBHKaFrhQWq7O4oM9O ETzDU+1g7rRWQryfEa20b5V5m0VO/Hp8R3k1OQpdPX/cFTpn/g6k84654Pz3xynfW0Kz AYfBC63Wuc5OFHm830qY0Ahd50DXYPR70D+mO0+Al/7Qo4sw3+Xqt+nCt/6gHJ2vmBu/ 9/GA== 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 j72-v6si20947205pfe.187.2018.07.11.08.43.33; Wed, 11 Jul 2018 08:43:48 -0700 (PDT) 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 S1733131AbeGKM6J (ORCPT + 99 others); Wed, 11 Jul 2018 08:58:09 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:64560 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733079AbeGKM6I (ORCPT ); Wed, 11 Jul 2018 08:58:08 -0400 X-IronPort-AV: E=Sophos;i="5.51,338,1526335200"; d="scan'208";a="272618882" Received: from unknown (HELO var.youpi.perso.aquilenet.fr) ([193.50.110.112]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES256-GCM-SHA384; 11 Jul 2018 14:53:53 +0200 Received: from samy by var.youpi.perso.aquilenet.fr with local (Exim 4.91) (envelope-from ) id 1fdEAk-0005Vv-GW; Wed, 11 Jul 2018 14:24:42 +0200 Date: Wed, 11 Jul 2018 14:24:42 +0200 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 variable l Message-ID: <20180711122442.mele6xunacmpbxe3@var.youpi.perso.aquilenet.fr> 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: <20180711112607.31292-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: <20180711112607.31292-1-colin.king@canonical.com> Organization: I am not organized User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Colin King, le mer. 11 juil. 2018 12:26:07 +0100, a ecrit: > From: Colin Ian King > > Variable l is being assigned but is never used hence it is redundant > and can be removed. > > Cleans up clang warning: > warning: variable 'l' set but not used [-Wunused-but-set-variable > > Signed-off-by: Colin Ian King Reviewed-by: Samuel Thibault > --- > drivers/staging/speakup/varhandlers.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/speakup/varhandlers.c b/drivers/staging/speakup/varhandlers.c > index 54a76b6752ad..1b545152cc49 100644 > --- a/drivers/staging/speakup/varhandlers.c > +++ b/drivers/staging/speakup/varhandlers.c > @@ -179,7 +179,6 @@ int spk_set_num_var(int input, struct st_var_header *var, int how) > { > int val; > int *p_val = var->p_val; > - int l; > char buf[32]; > char *cp; > struct var_t *var_data = var->data; > @@ -237,9 +236,9 @@ int spk_set_num_var(int input, struct st_var_header *var, int how) > else > cp = buf; > if (!var_data->u.n.out_str) > - l = sprintf(cp, var_data->u.n.synth_fmt, (int)val); > + sprintf(cp, var_data->u.n.synth_fmt, (int)val); > else > - l = sprintf(cp, var_data->u.n.synth_fmt, var_data->u.n.out_str[val]); > + sprintf(cp, var_data->u.n.synth_fmt, var_data->u.n.out_str[val]); > synth_printf("%s", cp); > return 0; > } > -- > 2.17.1 > -- Samuel > Allez, soyez sympa ... traduisez-lui "linux" Linux, c'est comme le miel : c'est vachement bon mais ça attire les mouches. En plus, ça colle aux doigts et on a du mal à s'en défaire. -+- TP in: Guide du linuxien pervers - "Barrez vous les mouches !"