Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1479790ybv; Sun, 23 Feb 2020 07:40:28 -0800 (PST) X-Google-Smtp-Source: APXvYqzNj9xWE+3iZyVLf51HJ+ByVRyevKPVX6v7+074F6N3gYybyjGOYJWGkdp51mlr+NaoJ6aF X-Received: by 2002:a05:6830:2154:: with SMTP id r20mr39112724otd.131.1582472428004; Sun, 23 Feb 2020 07:40:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582472427; cv=none; d=google.com; s=arc-20160816; b=Nc9wky7RVIdWd7e0vBlQLZeVz0/E79yGOzxguVp79E/J9xBtPOzFcCxI7J7CIo0qPn mABOWulIOBSc1k3g5k5QhdP9bpBdchDV8Rcr0eiKQSemPGC1vd/5HDo5FZnY8pxpzpN7 H5IoA4xbmobrfHfW18LlyVvppc2bIuQc2gJho/d+V9Fze8ToBzIsjWUaknxLikFDxFAw Iwmqs2SrPqS+Ecf4KLhTydgzDv1QYXr+RLVsHY7fc3fCA5y91Qus2zkSTMhWeo0qDGPD WNoN2J0fzaW6W0h8DYJNgniM+uEYxmx2AkK1DCAD/SqYIBdH5yUHKiNJtBM3XpQMtoyd /TaQ== 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; bh=BJVb6v/fMDs0cYmybTksygdLu4ix1pA7fWDzw92bI3M=; b=hvkHoqs5bEkBsCB5lZyh1YO8sMrVuxibbz++GMwfbf4fWHvIYNkEkJja8GplthTOKp +ntF1qgLz7ZVGB+4GyEnZhb5PT+h5VJ1lvV1Ao75BEHiNyCjd1edLn4uSDp9MCWJFAwr cy8ReF/UrTJ5kB00yrmVKtp62w+yXOjxQ7kJi2JlaMyzBKXM4vwDJpuze8KaEjEE+LKZ zKpY+zczl0k/F0TShatDAETqcEa83B3D9D/bCnVmlYqtRC+CgFjdCVQzMnyGiXucxQTK JHpzFojeNpij5Bh/zSQazUt+CkzPki9lUWFdxWQNDtC09LbE5BTiN8LsOSGsiBw0h0Hv ksqg== 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 m24si4836746otk.239.2020.02.23.07.40.14; Sun, 23 Feb 2020 07:40:27 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726748AbgBWPkD (ORCPT + 99 others); Sun, 23 Feb 2020 10:40:03 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:46944 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726208AbgBWPkD (ORCPT ); Sun, 23 Feb 2020 10:40:03 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1j5tMI-0006bc-HJ; Sun, 23 Feb 2020 15:39:54 +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 initialization of pointer p_key Date: Sun, 23 Feb 2020 15:39:54 +0000 Message-Id: <20200223153954.420731-1-colin.king@canonical.com> X-Mailer: git-send-email 2.25.0 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 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 --- 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