Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1fb769
)
Branch b_release_1_4_6
author
adilger
<adilger>
Mon, 6 Feb 2006 21:05:43 +0000
(21:05 +0000)
committer
adilger
<adilger>
Mon, 6 Feb 2006 21:05:43 +0000
(21:05 +0000)
Remove unused "rc" variable.
lustre/obdclass/lustre_peer.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/lustre_peer.c
b/lustre/obdclass/lustre_peer.c
index
499e313
..
d3b8a2f
100644
(file)
--- 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;