Skip to content

Commit 396ac4c

Browse files
Dan Carpentersmfrench
authored andcommitted
smb: delete an unnecessary statement
We don't need to set the list iterators to NULL before a list_for_each_entry() loop because they are assigned inside the macro. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Mukesh Ojha <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent b535cc7 commit 396ac4c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/smb/client/smb2ops.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ parse_server_interfaces(struct network_interface_info_ioctl_rsp *buf,
618618
* Add a new one instead
619619
*/
620620
spin_lock(&ses->iface_lock);
621-
iface = niface = NULL;
622621
list_for_each_entry_safe(iface, niface, &ses->iface_list,
623622
iface_head) {
624623
ret = iface_cmp(iface, &tmp_iface);

0 commit comments

Comments
 (0)