diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-05-26 15:01:33 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-05-26 21:07:16 -0500 |
commit | 396ac4c982f6d6cd7c0293a546a0ba5d77fe7f90 (patch) | |
tree | d21e36cf86d978a9a49e6b32021755b28852ae35 /fs | |
parent | b535cc796a4b4942cd189652588e8d37c1f5925a (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/smb/client/smb2ops.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/smb/client/smb2ops.c b/fs/smb/client/smb2ops.c index 5065398665f1..6e3be58cfe49 100644 --- a/fs/smb/client/smb2ops.c +++ b/fs/smb/client/smb2ops.c @@ -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); |