smb: client: remove extra @chan_count check in __cifs_put_smb_ses()
authorPaulo Alcantara <pc@manguebit.com>
Mon, 30 Oct 2023 20:19:53 +0000 (17:19 -0300)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Nov 2023 13:05:45 +0000 (08:05 -0500)
commitc37ed2d7d09869f30d291b9c6cba56ea4f0b0417
treecfd266f589f9d30f18e5f54e70dd9bcd204477db
parent4cf6e1101a25ca5e63d48adf49b0a8a64bae790f
smb: client: remove extra @chan_count check in __cifs_put_smb_ses()

If @ses->chan_count <= 1, then for-loop body will not be executed so
no need to check it twice.

Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c