Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1511712imm; Tue, 3 Jul 2018 12:34:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpddAP9Sr7E/TBZwL+Ni5PtJMUWjuLtJ0s7IxmLAh7MZ0l2YtB2gKeFGGPpk60UH4jx2JPoC X-Received: by 2002:a62:640b:: with SMTP id y11-v6mr31073997pfb.204.1530646455183; Tue, 03 Jul 2018 12:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530646455; cv=none; d=google.com; s=arc-20160816; b=tZfbnSZh/25vaswLhUUFDR1ioIWOPv08H2ZLtgvcuaDLrAvWhxaTUGL65LsFIl9CFS df5wGH1vXKXBAHA4xrWyFmV6TYEmbsAJiweG2+7t1Y/GQ9/CYCjNeycoie4F/miAoMaq JNnxASgmdVwzBFAkkRrO7AD705ZUwPs4QvPv4JmtfMXYryM/Hj9GxYXkQ5FwcabjGaMO nsp4g1lTGZ4CgE02xpKmqreX2rwDDR9+3MyYU5ZJkT91S8RDj8AGVBt83NefKEpIF6YU zkia+/w8iDPjJz2SFZWs6m75cKIfFEfHtHob4G9DVo/zfX/YjEeY7eycuIu9VuEXKOyE g8ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=5Ce/Az5SEvAiqoIMKijIdSvweqZ8RrrxKlQ+9FKyeQQ=; b=KkOhGWNfwr3pyozFGxxmcO4bdZyUW1fVHtyGc8av0N3TYxaVX4pJTczMFgRijCDpC0 rumZWx3v5Y9Sn0XqObzMry85Nnit+QXKDUiL8UOeHewh/pgLzsKo1pYox9tKcDcwR1Du NDHZYTuT8bIuRO0yJP6IHvqvKiWlS2Jcfu46MgksGaaI3olGqsBMLMtAVc0dbIXq4M8o AvFd0f4lrkuqOmOAJioiBmzs22p4RBhpboijuIqJDDrQOR+Uc+fR3AVMdI1yfo/jHPSk Ny7nSZNaKjgFaezE7aXvmx6YqrnpaNoGJ0m4yBLmtaMjrFs89nu3SD53EBaRMAUnGzG1 TuYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="REfGxBv/"; 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 d5-v6si1688848plo.3.2018.07.03.12.34.00; Tue, 03 Jul 2018 12:34:15 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b="REfGxBv/"; 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 S934681AbeGCTdB (ORCPT + 99 others); Tue, 3 Jul 2018 15:33:01 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34132 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934525AbeGCTc6 (ORCPT ); Tue, 3 Jul 2018 15:32:58 -0400 Received: by mail-lf0-f68.google.com with SMTP id n96-v6so2518719lfi.1; Tue, 03 Jul 2018 12:32:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=5Ce/Az5SEvAiqoIMKijIdSvweqZ8RrrxKlQ+9FKyeQQ=; b=REfGxBv/GAli35iJj3X+eDFvnXSkDnWZCiJJzyQjtFgQovJ0ihlxANll+NibigeLvm NpfAEZ6vzAbIP1k21Au8Hkmh8zuWoBsn5VnB7xyNAp3+aV6lLmn+RbgyF2ZFpW2HM7mv dJBFUBylHVlLmpcx4HYQvwq6BWd/gx56YtZCa3i3wuy1Ikw8DNv3cxyARJ3TRHHPQq33 1xOH3MOvFmy8u4FOZwUSJAOJh/EO189ZVbYP+XePpKYDEv7hme0QTC+iQ/nXNa8jJoA/ KTGpMHznm3/cS00wl1FlvCf9ytycNPGqTjImu2QEU2swRwqDo4GsJdNfU1enuFc7NvrK I4WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=5Ce/Az5SEvAiqoIMKijIdSvweqZ8RrrxKlQ+9FKyeQQ=; b=I92qklMr7fy7K/gH6n0GH6P+Bc1ykx86CnFMyT46pZFLSRDGK9vtU03Q129qIhE6u8 U4MZhq2l8NJrrN4A7DSwBu1H2cvnfw/bEKovpqC8/DIj3M6vxJE6biulcyzLWSgmXlL3 P97qz3GVq0dUFuvzQ1voLOLJYxGrnc1MgaMNyovUx7cah/7lNDyLzSiQdyP2wZ5AuHSz MGKH5ijTrLv8uyjw7WQb7ESu4m6g43jVys9lq6L8jZgLgB5VIj8GRc1Mc/1TgKCIg2nC zYwnq7PmLaa3rD2OBuTMF1+BrHHJci1c28GulDQAGkGqrpPIOhlIbwGyd/hAqIFW2/AT G1ow== X-Gm-Message-State: APt69E0MHAtgXX2GLHmu1jNxPgir/s+aOz1ukmUX3txg+UJSefoqUfFH juQ4sD1+Z3vh8NHWT0l4uuuNbQEE7YsyK1vZ2Bw= X-Received: by 2002:a19:c218:: with SMTP id l24-v6mr766211lfc.55.1530646377288; Tue, 03 Jul 2018 12:32:57 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:41c1:0:0:0:0:0 with HTTP; Tue, 3 Jul 2018 12:32:56 -0700 (PDT) In-Reply-To: <20180703072305.29169-1-colin.king@canonical.com> References: <20180703072305.29169-1-colin.king@canonical.com> From: Arnd Bergmann Date: Tue, 3 Jul 2018 21:32:56 +0200 X-Google-Sender-Auth: tL-csSyzmaeGGqGrPtuHPbDlOko Message-ID: Subject: Re: [PATCH] sgi-xp: remove redundant pointers ch and rp To: Colin King Cc: Cliff Whickman , Robin Holt , Greg Kroah-Hartman , kernel-janitors@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 3, 2018 at 9:23 AM, Colin King wrote: > 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. This was left behind in 2005 when the last use of that variable got removed in commit e54af724c1ae ("[IA64-SGI] fixes for XPC disengage and open/close protocol") > 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; > - And this one in 4b38fcd48582 ("[IA64-SGI] XPC changes to support more than 2k nasids") Both changes look correct to me, Acked-by: Arnd Bergmann