ksmbd: remove unneeded NULL check in the list iterator
authorNamjae Jeon <namjae.jeon@samsung.com>
Tue, 22 Jun 2021 07:16:45 +0000 (16:16 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Mon, 28 Jun 2021 07:28:21 +0000 (16:28 +0900)
commit560ac05130696de2491881bbc2a5024c94bc3912
treee3e216b99a493947fa9a0e70abc8a387dd281eee
parentee81cae1a6323fa4489313dfd9de436da7ff8519
ksmbd: remove unneeded NULL check in the list iterator

Remove unneeded NULL check in the list iterator. And use
list_for_each_entry_safe instead of list_for_each_safe.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/mgmt/user_session.c
fs/cifsd/smb2pdu.c