]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: delete unnecessary NULL checks in cifs_chan_update_iface()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 8 Jan 2024 09:07:59 +0000 (12:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:28:34 +0000 (15:28 +0200)
commit4501f9cd36c1e220726b60f313bd1e47539d54db
treefc82ccfd2b13ff52dddeb66f239ab9821ab8bc06
parentdb3a3e6fa33e4bb6eb517ffa52a1a7d3bf37bc24
cifs: delete unnecessary NULL checks in cifs_chan_update_iface()

[ Upstream commit c3a11c0ec66c1e0652e3a2bb4f5cc74eea0ba486 ]

We return early if "iface" is NULL so there is no need to check here.
Delete those checks.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: 16a57d768111 ("cifs: reduce warning log level for server not advertising interfaces")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/sess.c