]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: use max_t() to simplify open code
authorZiyang Xuan <william.xuanziyang@huawei.com>
Tue, 7 Jun 2022 07:32:01 +0000 (15:32 +0800)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 3 Oct 2022 15:26:36 +0000 (11:26 -0400)
commit6449332887840523ac368029fc685cb94e53e35c
treed391a82a05a5510a003ee3330de7f8c704ee172b
parent499ec47269a4e9670a5d6fd9b0c62a914ea96ca3
SUNRPC: use max_t() to simplify open code

Use max_t() to simplify open code which uses "if...else" to get maximum of
two values.

Generated by coccinelle script:
scripts/coccinelle/misc/minmax.cocci

Signed-off-by: Ziyang Xuan <william.xuanziyang@huawei.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprt.c