mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
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 <dan.carpenter@linaro.org> Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
b535cc796a
commit
396ac4c982
|
|
@ -618,7 +618,6 @@ parse_server_interfaces(struct network_interface_info_ioctl_rsp *buf,
|
|||
* Add a new one instead
|
||||
*/
|
||||
spin_lock(&ses->iface_lock);
|
||||
iface = niface = NULL;
|
||||
list_for_each_entry_safe(iface, niface, &ses->iface_list,
|
||||
iface_head) {
|
||||
ret = iface_cmp(iface, &tmp_iface);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user