mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cifs: remove redundant duplicated assignment of pointer 'node'
Node is assigned twice to rb_first(root), first during declaration time and second after a taking a spin lock, so we have a duplicated assignment. Remove the first assignment because it is redundant and also not protected by the spin lock. Cleans up clang warning: fs/cifs/connect.c:4435:18: warning: Value stored to 'node' during its initialization is never read Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Steve French <[email protected]> Reviewed-by: Ronnie Sahlberg <[email protected]>
This commit is contained in:
parent
e36c048a9b
commit
37e12f5551
1 changed files with 1 additions and 1 deletions
|
|
@ -4432,7 +4432,7 @@ cifs_prune_tlinks(struct work_struct *work)
|
|||
struct cifs_sb_info *cifs_sb = container_of(work, struct cifs_sb_info,
|
||||
prune_tlinks.work);
|
||||
struct rb_root *root = &cifs_sb->tlink_tree;
|
||||
struct rb_node *node = rb_first(root);
|
||||
struct rb_node *node;
|
||||
struct rb_node *tmp;
|
||||
struct tcon_link *tlink;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue