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>
 {
        short partid;
        struct xpc_partition *part;
-       struct xpc_channel *ch;
 
        DBUG_ON(ch_number < 0 || ch_number >= XPC_MAX_NCHANNELS);
 
                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.
 
        int region_size;
        int max_regions;
        int nasid;
-       struct xpc_rsvd_page *rp;
        unsigned long *discovered_nasids;
        enum xp_retval ret;
 
                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