summaryrefslogtreecommitdiffstats
path: root/drivers/misc/sgi-xp/xpc_channel.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-03 09:23:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-03 13:01:48 +0200
commitaa8998e57640c98ce0c53c1dfc7a8e990adfffa4 (patch)
tree2cce6d3e7eaeb2923b6b8db11dbedf1733f554db /drivers/misc/sgi-xp/xpc_channel.c
parentmisc: genwqe: remove several redundant variables (diff)
downloadlinux-aa8998e57640c98ce0c53c1dfc7a8e990adfffa4.tar.xz
linux-aa8998e57640c98ce0c53c1dfc7a8e990adfffa4.zip
sgi-xp: remove redundant pointers ch and rp
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 <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/sgi-xp/xpc_channel.c')
-rw-r--r--drivers/misc/sgi-xp/xpc_channel.c3
1 files changed, 0 insertions, 3 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.