[PATCH 6.6 023/102] cifs: remove unneeded return statement

Greg Kroah-Hartman
2024-05-23T13:24:51Z

From: Steve French <stfrench@microsoft.com>

[ Upstream commit a3f763fdcb2f784c355aed66ddac6748ff8dbfa6 ]

Return statement was not needed at end of cifs_chan_update_iface

Suggested-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
fs/smb/client/sess.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/fs/smb/client/sess.c b/fs/smb/client/sess.c
index 5de32640f0265..3216f786908fb 100644
--- a/fs/smb/client/sess.c
+++ b/fs/smb/client/sess.c
@@ -485,8 +485,6 @@ cifs_chan_update_iface(struct cifs_ses *ses, struct TCP_Server_Info *server)

ses->chans[chan_index].iface = iface;
spin_unlock(&ses->chan_lock);
-
- return;
}

/*
--
2.43.0