Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp390908imm; Wed, 11 Jul 2018 04:27:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe4YjkhwivQ82tIqc1BStL3c27iq5Zrz3wSBkfLDTR8ZbYQ84DnU+LTaGvXp5SG6y75Zn5F X-Received: by 2002:a63:35c3:: with SMTP id c186-v6mr26166857pga.217.1531308421744; Wed, 11 Jul 2018 04:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531308421; cv=none; d=google.com; s=arc-20160816; b=SCdqS7BGniIPM0pGXlkD4LYeTLAdVj201VQACL8RyjuzkZPeY+Yc1R5B2kBOus5wiW JvsIGsjQJkwmauO/YkV/EFwfjPQR727H/sR+rlR0uVgoxs3w11wA8n2uRuSM7Ly5O2bP UT2mqfgmAfuiegs6qxIJUQuQcDAxkdxCQFYcnhn7V12uD7TgzN5fQqCksoCw1/6zZ+cP B0KdJ4m3AdaUysVcqMe71YKD7R+LnEIRQZDG3ND5sHx4Jk6hUViw0OdstS4rmXFPQ1Kv 91SpBkR9riMCGFfVtGNQxAiYBYTCfjRN64ke7qsmWvNIqT/23m2iZJVjWMNjmxaYwHNK KMTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=fbzxmiVjaXB9I3HIk7zsTK5Ukdnw+zu72BW0UibEvXQ=; b=wBUk6GVa3ggQkwZpTyzoUfBSdLJ8fdNfo5XhpjYFy70EmK5T3S7zhir/kQyyr0WTiu CsxNtiRYB2kXpJjfSjT+N8/wHWv7CAyLb5x9qnrc+fgDk4F/IJKe920VJZMzgyJYIEwE ofAeUWy8f05255+OqF5nrW5/0mhwhpnjNw+Dyns380GIuaT7a6IiGV8FEuryXThmqHRo Qj8YQ9JEewCBo3t5grPKRX7ghLlEEggVMaaGV1tzDKKuacAtbschFYvlMn8lizGTiRpm kzVZsMzQRj5TaUbW56mebvGTB57nzFeJy8o8kG4sBLIo0TLsf6/0F4Y+5nUHHKVxz7oi aOhQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15-v6si13620008pgu.205.2018.07.11.04.26.46; Wed, 11 Jul 2018 04:27:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732741AbeGKLaF (ORCPT + 99 others); Wed, 11 Jul 2018 07:30:05 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:47790 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726644AbeGKLaF (ORCPT ); Wed, 11 Jul 2018 07:30:05 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fdDG3-0006Hd-Kr; Wed, 11 Jul 2018 11:26:07 +0000 From: Colin King To: William Hubbs , Chris Brannon , Kirk Reiser , Samuel Thibault , Greg Kroah-Hartman , speakup@linux-speakup.org, devel@driverdev.osuosl.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: speakup: remove redundant variable l Date: Wed, 11 Jul 2018 12:26:07 +0100 Message-Id: <20180711112607.31292-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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