diff options
author | Jeff Layton <jlayton@redhat.com> | 2011-05-04 08:08:19 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-05-19 10:10:52 -0400 |
commit | 0e6e37a7a81f370d9aafafdf88aca13977f6fb5f (patch) | |
tree | 5b622b01e5b6d1dfaa3fe70cb758aaff6f82692c /fs/cifs/cifsacl.c | |
parent | 6feb9891da4f8b04ffca69c00eb56bb7c1b64dc4 (diff) |
cifs: fix some unused variable warnings in id_rb_search
fs/cifs/cifsacl.c: In function ‘id_rb_search’:
fs/cifs/cifsacl.c:215:19: warning: variable ‘linkto’ set but not used
[-Wunused-but-set-variable]
fs/cifs/cifsacl.c:214:18: warning: variable ‘parent’ set but not used
[-Wunused-but-set-variable]
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsacl.c')
-rw-r--r-- | fs/cifs/cifsacl.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c index a4aa0f0af5c3..bfb5ba5a271b 100644 --- a/fs/cifs/cifsacl.c +++ b/fs/cifs/cifsacl.c | |||
@@ -211,19 +211,14 @@ id_rb_search(struct rb_root *root, struct cifs_sid *sidptr) | |||
211 | { | 211 | { |
212 | int rc; | 212 | int rc; |
213 | struct rb_node *node = root->rb_node; | 213 | struct rb_node *node = root->rb_node; |
214 | struct rb_node *parent = NULL; | ||
215 | struct rb_node **linkto = &(root->rb_node); | ||
216 | struct cifs_sid_id *lsidid; | 214 | struct cifs_sid_id *lsidid; |
217 | 215 | ||
218 | while (node) { | 216 | while (node) { |
219 | lsidid = rb_entry(node, struct cifs_sid_id, rbnode); | 217 | lsidid = rb_entry(node, struct cifs_sid_id, rbnode); |
220 | parent = node; | ||
221 | rc = compare_sids(sidptr, &((lsidid)->sid)); | 218 | rc = compare_sids(sidptr, &((lsidid)->sid)); |
222 | if (rc > 0) { | 219 | if (rc > 0) { |
223 | linkto = &(node->rb_left); | ||
224 | node = node->rb_left; | 220 | node = node->rb_left; |
225 | } else if (rc < 0) { | 221 | } else if (rc < 0) { |
226 | linkto = &(node->rb_right); | ||
227 | node = node->rb_right; | 222 | node = node->rb_right; |
228 | } else /* node found */ | 223 | } else /* node found */ |
229 | return lsidid; | 224 | return lsidid; |