diff options
author | Jiangshan Yi <[email protected]> | 2022-07-13 15:02:05 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-07-14 16:09:56 +0200 |
commit | efa2bebf2a9fde638644d6fb0fb776345ac6fcc1 (patch) | |
tree | 9410557dcb47febe7f2f62a0905f6d0ba3cc5735 /net/unix/af_unix.c | |
parent | 5e76ee96be8f7bbf9416a5edddc8c064e7e7c6ac (diff) |
usb: ldusb: replace ternary operator with max_t()
Fix the following coccicheck warning:
drivers/usb/misc/ldusb.c:719: WARNING opportunity for max().
drivers/usb/misc/ldusb.c:721: WARNING opportunity for max().
max_t() macro is defined in include/linux/minmax.h. It avoids
multiple evaluations of the arguments when non-constant and performs
strict type-checking.
Signed-off-by: Jiangshan Yi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions