]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: Use min() macro
authorShen Lichuan <shenlichuan@vivo.com>
Tue, 27 Aug 2024 08:54:20 +0000 (16:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:09:04 +0000 (12:09 +0200)
commit91d7e6cbb3f8bf258a8726c55c5e24cdc524acae
treeef2f5472a48cf260e33c36816bae63b2c50b0dcf
parentc29dbc44fbf7241443778379754f65c96bc06e65
smb: client: Use min() macro

[ Upstream commit 25e68c37caf2b87c7dbcd99c54ec3102db7e4296 ]

Use the min() macro to simplify the function and improve
its readability.

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Stable-dep-of: 5349ae5e05fa ("smb: client: let send_done() cleanup before calling smbd_disconnect_rdma_connection()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/cifsacl.c
fs/smb/client/smbdirect.c