Commit 396ac4c9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Steve French

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: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarMukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent b535cc79
...@@ -618,7 +618,6 @@ parse_server_interfaces(struct network_interface_info_ioctl_rsp *buf, ...@@ -618,7 +618,6 @@ parse_server_interfaces(struct network_interface_info_ioctl_rsp *buf,
* Add a new one instead * Add a new one instead
*/ */
spin_lock(&ses->iface_lock); spin_lock(&ses->iface_lock);
iface = niface = NULL;
list_for_each_entry_safe(iface, niface, &ses->iface_list, list_for_each_entry_safe(iface, niface, &ses->iface_list,
iface_head) { iface_head) {
ret = iface_cmp(iface, &tmp_iface); ret = iface_cmp(iface, &tmp_iface);
......
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