2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-07 21:24:00 +08:00
linux-next/drivers/staging/gdm724x
Gargi Sharma c95d2e87fc staging: gdm724x: Replace ternary operator with min macro
Use macro min() to get the minimum of two values for
brevity and readability. The macro MUX_TX_MAX_SIZE
has a value of 2048 which is well within the integer
limits. This check was done manually.

Found using Coccinelle:
@@ type T; T x; T y; @@
(
- x < y ? x : y
+ min(x,y)
|
- x > y ? x : y
+ max(x,y)
)

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-09 18:50:05 +01:00
..
gdm_endian.c staging: gdm724x: update HCI structs with new bitwise types 2017-01-05 18:50:05 +01:00
gdm_endian.h staging: gdm724x: update HCI structs with new bitwise types 2017-01-05 18:50:05 +01:00
gdm_lte.c staging: gdm724x: Drop useless initialisation 2017-03-06 09:16:58 +01:00
gdm_lte.h staging: gdm724x: Align parameters to parenthesis 2016-11-29 21:57:14 +01:00
gdm_mux.c staging: gdm724x: Drop useless initialisation 2017-03-06 09:16:58 +01:00
gdm_mux.h staging: gdm724x: Add spaces around the '*' operator 2016-09-13 14:51:53 +02:00
gdm_tty.c staging: gdm724x: Replace ternary operator with min macro 2017-03-09 18:50:05 +01:00
gdm_tty.h staging: gdm724x: Remove one blank line in sequence 2016-11-29 21:57:15 +01:00
gdm_usb.c staging: gdm724x: gdm_usb: Remove ignored value 2016-08-21 18:04:43 +02:00
gdm_usb.h staging: gdm724x: Add spaces around the '*' operator 2016-09-13 14:51:53 +02:00
hci_packet.h staging: gdm724x: update HCI structs with new bitwise types 2017-01-05 18:50:05 +01:00
hci.h
Kconfig
Makefile
netlink_k.c staging: gdm724x: Replace semaphore netlink with mutex 2016-08-21 18:04:43 +02:00
netlink_k.h staging: gdm724x: Align parameters to parenthesis 2016-11-29 21:57:14 +01:00
TODO