From: adilger Date: Mon, 6 Feb 2006 21:05:43 +0000 (+0000) Subject: Branch b_release_1_4_6 X-Git-Tag: v1_7_100~1^103~4^2~49 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=803157a68398cb56325b4c77ae588a17c8d268d2;p=fs%2Flustre-release.git Branch b_release_1_4_6 Remove unused "rc" variable. --- diff --git a/lustre/obdclass/lustre_peer.c b/lustre/obdclass/lustre_peer.c index 499e313..d3b8a2f 100644 --- a/lustre/obdclass/lustre_peer.c +++ b/lustre/obdclass/lustre_peer.c @@ -88,7 +88,6 @@ int lustre_uuid_to_peer(char *uuid, lnet_nid_t *peer_nid, int index) int class_add_uuid(char *uuid, __u64 nid) { struct uuid_nid_data *data; - int rc; int nob = strnlen (uuid, PAGE_SIZE) + 1; LASSERT(nid != 0); /* valid newconfig NID is never zero */ @@ -96,7 +95,6 @@ int class_add_uuid(char *uuid, __u64 nid) if (nob > PAGE_SIZE) return -EINVAL; - rc = -ENOMEM; OBD_ALLOC(data, sizeof(*data)); if (data == NULL) return -ENOMEM;