summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2011-05-04 08:08:19 -0400
committerSteve French <sfrench@us.ibm.com>2011-05-07 18:14:20 +0000
commitffa397a81c37e1ea7a0a680dcf7708c3b7207492 (patch)
tree3621f13a449ab20b2e056238f1d349a5726dea23 /fs
parenta1d7911d78b544db88904ead746b8075c5626342 (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')
-rw-r--r--fs/cifs/cifsacl.c5
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)
{
int rc;
struct rb_node *node = root->rb_node;
- struct rb_node *parent = NULL;
- struct rb_node **linkto = &(root->rb_node);
struct cifs_sid_id *lsidid;
while (node) {
lsidid = rb_entry(node, struct cifs_sid_id, rbnode);
- parent = node;
rc = compare_sids(sidptr, &((lsidid)->sid));
if (rc > 0) {
- linkto = &(node->rb_left);
node = node->rb_left;
} else if (rc < 0) {
- linkto = &(node->rb_right);
node = node->rb_right;
} else /* node found */
return lsidid;