Commit 0e6e37a7 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French

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: default avatarShirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent 6feb9891
...@@ -211,19 +211,14 @@ id_rb_search(struct rb_root *root, struct cifs_sid *sidptr) ...@@ -211,19 +211,14 @@ id_rb_search(struct rb_root *root, struct cifs_sid *sidptr)
{ {
int rc; int rc;
struct rb_node *node = root->rb_node; struct rb_node *node = root->rb_node;
struct rb_node *parent = NULL;
struct rb_node **linkto = &(root->rb_node);
struct cifs_sid_id *lsidid; struct cifs_sid_id *lsidid;
while (node) { while (node) {
lsidid = rb_entry(node, struct cifs_sid_id, rbnode); lsidid = rb_entry(node, struct cifs_sid_id, rbnode);
parent = node;
rc = compare_sids(sidptr, &((lsidid)->sid)); rc = compare_sids(sidptr, &((lsidid)->sid));
if (rc > 0) { if (rc > 0) {
linkto = &(node->rb_left);
node = node->rb_left; node = node->rb_left;
} else if (rc < 0) { } else if (rc < 0) {
linkto = &(node->rb_right);
node = node->rb_right; node = node->rb_right;
} else /* node found */ } else /* node found */
return lsidid; return lsidid;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment