Whamcloud - gitweb
Branch b_release_1_4_6
authoradilger <adilger>
Mon, 6 Feb 2006 21:05:43 +0000 (21:05 +0000)
committeradilger <adilger>
Mon, 6 Feb 2006 21:05:43 +0000 (21:05 +0000)
Remove unused "rc" variable.

lustre/obdclass/lustre_peer.c

index 499e313..d3b8a2f 100644 (file)
@@ -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;