Commit aa8998e5 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ccbaef5d
...@@ -656,7 +656,6 @@ xpc_initiate_connect(int ch_number) ...@@ -656,7 +656,6 @@ xpc_initiate_connect(int ch_number)
{ {
short partid; short partid;
struct xpc_partition *part; struct xpc_partition *part;
struct xpc_channel *ch;
DBUG_ON(ch_number < 0 || ch_number >= XPC_MAX_NCHANNELS); DBUG_ON(ch_number < 0 || ch_number >= XPC_MAX_NCHANNELS);
...@@ -664,8 +663,6 @@ xpc_initiate_connect(int ch_number) ...@@ -664,8 +663,6 @@ xpc_initiate_connect(int ch_number)
part = &xpc_partitions[partid]; part = &xpc_partitions[partid];
if (xpc_part_ref(part)) { if (xpc_part_ref(part)) {
ch = &part->channels[ch_number];
/* /*
* Initiate the establishment of a connection on the * Initiate the establishment of a connection on the
* newly registered channel to the remote partition. * newly registered channel to the remote partition.
......
...@@ -415,7 +415,6 @@ xpc_discovery(void) ...@@ -415,7 +415,6 @@ xpc_discovery(void)
int region_size; int region_size;
int max_regions; int max_regions;
int nasid; int nasid;
struct xpc_rsvd_page *rp;
unsigned long *discovered_nasids; unsigned long *discovered_nasids;
enum xp_retval ret; enum xp_retval ret;
...@@ -432,8 +431,6 @@ xpc_discovery(void) ...@@ -432,8 +431,6 @@ xpc_discovery(void)
return; return;
} }
rp = (struct xpc_rsvd_page *)xpc_rsvd_page;
/* /*
* The term 'region' in this context refers to the minimum number of * The term 'region' in this context refers to the minimum number of
* nodes that can comprise an access protection grouping. The access * nodes that can comprise an access protection grouping. The access
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment