diff options
author | Shen Lichuan <shenlichuan@vivo.com> | 2024-08-27 16:54:20 +0800 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-09-15 10:42:44 -0500 |
commit | 25e68c37caf2b87c7dbcd99c54ec3102db7e4296 (patch) | |
tree | 90ec431f40457ca187d64bd5e74090ed474a8c1f /fs/smb/client/cifsacl.c | |
parent | 9290038be2f91917d384b48f85665c4498c378f3 (diff) |
smb: client: Use min() macro
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>
Diffstat (limited to 'fs/smb/client/cifsacl.c')
-rw-r--r-- | fs/smb/client/cifsacl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smb/client/cifsacl.c b/fs/smb/client/cifsacl.c index e2ec1d934335..1d294d53f662 100644 --- a/fs/smb/client/cifsacl.c +++ b/fs/smb/client/cifsacl.c @@ -187,7 +187,7 @@ compare_sids(const struct smb_sid *ctsid, const struct smb_sid *cwsid) /* compare all of the subauth values if any */ num_sat = ctsid->num_subauth; num_saw = cwsid->num_subauth; - num_subauth = num_sat < num_saw ? num_sat : num_saw; + num_subauth = min(num_sat, num_saw); if (num_subauth) { for (i = 0; i < num_subauth; ++i) { if (ctsid->sub_auth[i] != cwsid->sub_auth[i]) { |