linux/net/caif
Li Zetao b4985aa8e3 net: caif: use max() to simplify the code
When processing the tail append of sk buffer, the final length needs
to be determined based on expectlen and addlen. Using max() here can
increase the readability of the code.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240822133908.1042240-4-lizetao1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-08-26 09:48:53 -07:00
..
caif_dev.c net: fill in MODULE_DESCRIPTION()s for CAIF 2024-01-05 08:06:35 -08:00
caif_socket.c net: fill in MODULE_DESCRIPTION()s for CAIF 2024-01-05 08:06:35 -08:00
caif_usb.c net: fill in MODULE_DESCRIPTION()s for CAIF 2024-01-05 08:06:35 -08:00
cfcnfg.c caif: move from strlcpy with unused retval to strscpy 2022-08-22 17:57:35 -07:00
cfctrl.c caif: Use UTILITY_NAME_LENGTH instead of hard-coding 16 2024-04-02 18:20:00 -07:00
cfdbgl.c
cfdgml.c
cffrml.c
cfmuxl.c
cfpkt_skbuff.c net: caif: use max() to simplify the code 2024-08-26 09:48:53 -07:00
cfrfml.c
cfserl.c net: caif: remove redundant assignment to variable expectlen 2021-12-28 12:52:24 +00:00
cfsrvl.c
cfutill.c
cfveil.c
cfvidl.c
chnl_net.c net: fill in MODULE_DESCRIPTION()s for CAIF 2024-01-05 08:06:35 -08:00
Kconfig
Makefile