]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: Replace the ternary conditional operator with min()
authorLu Hongfei <luhongfei@vivo.com>
Mon, 18 Dec 2023 15:34:09 +0000 (00:34 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Dec 2023 09:41:56 +0000 (10:41 +0100)
commitd91ba80185e4a0eea471d794638c1b2935fd90f4
tree21c6e01e67f81849f9d42ab5699a7500df635dc5
parent2222ada0959be7467b18e34e4dab36792e327d55
ksmbd: Replace the ternary conditional operator with min()

[ Upstream commit f65fadb0422537d73f9a6472861852dc2f7a6a5b ]

It would be better to replace the traditional ternary conditional
operator with min() in compare_sids.

Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ksmbd/smbacl.c