Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp834562imm; Tue, 3 Jul 2018 00:24:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfVWoFbcVs5/0zRwssVRmPZ3AqtOW61t18h9Emo0yW7eYinds2e3uqkYwYKkNtkJ50Ui+ya X-Received: by 2002:a17:902:9f81:: with SMTP id g1-v6mr8719331plq.304.1530602680222; Tue, 03 Jul 2018 00:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530602680; cv=none; d=google.com; s=arc-20160816; b=y6cqh7kARtDABTi584pjEvEBh9//ptsslh80bdExSARu/qWmxFje9GSlpy4KJQ+2Jn cIIg+VqUc6X8Worzww+aXsBWZWhM2aw8Mr3lLCFIaumiU5WPPR80Go53NVllxJfly+oZ VqEr3/pgfNmOPU2mhz7OvAAu9D7sBoa90lS40s1Slr1LFF7CSubJ3B/oCXgsllf7wP3E LOqOboeYsBnW03zZFBpWdXMjRYP7+A9dnJ/JqIE7dPlfpmTApgO7WOxrx5iq3NBYWS6C Q0MUMoFqJF0EdOkbLQhZQtEafZQr00oN9Nr2bpP/V6k7dLzxbVAHvx6hiZvkfrKfjXid iTHw== 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=/9UME40Ep62bpsYBhcEoUbWIwrag/pAeStni992XJJg=; b=C2XSpbUke8bE0ei/2CDWtnoToPsn04vm8pi9ltqBiMwBn20nK3Pf5rvEyHY0D1enzB sDm15V+SIef5QS0k22GX/a97CVIEnLXcbfIKdIoGjBYwxwp/u9dLoM7aV7yaDEFwaOpF kdXqPGEsG2LSyjfT84uGLDRwccBRXqdy+skSo/ivc5G7mzXujiChJBo5z8fsn8L2DR/F mCMI/7/K6y0knCxK2Q30+Ij8tOlVcd6Rav9JyxsuwG21E2z0LYpnbSbuHkXMfJ/9m6M1 ju7Ed6OfbSQqgCZn6QdsRLvGie88qsbCJ8tlghDajjtKGChJxzzda6Ml0ex9kMYt2yCU LzuQ== 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 y34-v6si498771plb.317.2018.07.03.00.24.26; Tue, 03 Jul 2018 00:24:40 -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 S933435AbeGCHXL (ORCPT + 99 others); Tue, 3 Jul 2018 03:23:11 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:45491 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932604AbeGCHXJ (ORCPT ); Tue, 3 Jul 2018 03:23:09 -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 1faFeU-0000Vy-DA; Tue, 03 Jul 2018 07:23:06 +0000 From: Colin King To: Cliff Whickman , Robin Holt , Arnd Bergmann , Greg Kroah-Hartman Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] sgi-xp: remove redundant pointers ch and rp Date: Tue, 3 Jul 2018 08:23:05 +0100 Message-Id: <20180703072305.29169-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 The pointers ch and rp are set but are never used hence they are redundant and can be removed. Cleans up clang warnings: warning: variable 'ch' set but not used [-Wunused-but-set-variable] warning: variable 'rp' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King --- drivers/misc/sgi-xp/xpc_channel.c | 3 --- drivers/misc/sgi-xp/xpc_partition.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/drivers/misc/sgi-xp/xpc_channel.c b/drivers/misc/sgi-xp/xpc_channel.c index 128d5615c804..05a890ce2ab8 100644 --- a/drivers/misc/sgi-xp/xpc_channel.c +++ b/drivers/misc/sgi-xp/xpc_channel.c @@ -656,7 +656,6 @@ xpc_initiate_connect(int ch_number) { short partid; struct xpc_partition *part; - struct xpc_channel *ch; DBUG_ON(ch_number < 0 || ch_number >= XPC_MAX_NCHANNELS); @@ -664,8 +663,6 @@ xpc_initiate_connect(int ch_number) part = &xpc_partitions[partid]; if (xpc_part_ref(part)) { - ch = &part->channels[ch_number]; - /* * Initiate the establishment of a connection on the * newly registered channel to the remote partition. diff --git a/drivers/misc/sgi-xp/xpc_partition.c b/drivers/misc/sgi-xp/xpc_partition.c index 7284413dabfd..4e59b01ad7eb 100644 --- a/drivers/misc/sgi-xp/xpc_partition.c +++ b/drivers/misc/sgi-xp/xpc_partition.c @@ -415,7 +415,6 @@ xpc_discovery(void) int region_size; int max_regions; int nasid; - struct xpc_rsvd_page *rp; unsigned long *discovered_nasids; enum xp_retval ret; @@ -432,8 +431,6 @@ xpc_discovery(void) return; } - rp = (struct xpc_rsvd_page *)xpc_rsvd_page; - /* * The term 'region' in this context refers to the minimum number of * nodes that can comprise an access protection grouping. The access -- 2.17.1