linux/drivers/staging
Bhumika Goyal c754db403d Staging: rdma: Use min macro instead of ternary operator
This patch replaces ternary operator with macro min as it shorter and
thus increases code readability. Macro min return the minimum of the
two compared values.
Made a semantic patch for changes:

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-11 22:09:09 -08:00
..
android Staging: android: ashmem.c: Convert macros page_range_{subsumes/subsumed_by/in}_range to static inline function 2016-03-11 22:09:09 -08:00
board Staging: board: Blank lines aren't necessary before a close brace 2016-02-07 19:57:22 -08:00
clocking-wizard Staging: clocking-wizard: CHECK:Please use a blank line 2016-02-07 20:05:31 -08:00
comedi Revert "staging: comedi: drivers: Remove unneeded NULL check before kfree()" 2016-03-10 19:35:54 -08:00
dgnc staging: dgnc: cleanup properly 2016-03-11 22:09:09 -08:00
emxx_udc Staging: emxx_udc: Return NULL instead of 0. 2016-03-11 22:09:09 -08:00
fbtft staging: fbtft: fb_uc1611.c: Drop void pointer cast 2016-03-11 22:09:09 -08:00
fsl-mc Staging: fsl-mc: Replace pr_err with dev_err 2016-03-11 22:09:09 -08:00
fwserial staging: fwserial: (coding-style) rewrite comparisons to NULL as "!fifo->data" 2016-02-07 19:36:14 -08:00
gdm724x Staging: gdm724x: Replace random_ether_addr with eth_random_addr 2016-03-05 14:48:04 -08:00
goldfish staging: goldfish: audio: fix compiliation on arm 2016-03-11 22:09:09 -08:00
gs_fpgaboot staging: gs_fpgaboot: drop wrapper function 'finish_driver' 2016-03-11 22:09:09 -08:00
i4l isdn: i4l: move active-isdn drivers to staging 2016-03-05 15:00:38 -08:00
iio staging: iio: addac: Remove unnecessary else after return 2016-03-11 22:09:09 -08:00
lustre staging: lustre: lnet: o2iblnd: Use list_for_each_entry_safe 2016-03-11 22:09:09 -08:00
media staging: media: davinci_vpfe: Remove unnecessary else after return 2016-03-11 22:09:09 -08:00
most staging: most: hdm-usb: Remove invalid reference error 2016-03-11 22:09:09 -08:00
mt29f_spinand staging: mt29f_spinand: Remove unneeded else following return 2016-02-20 15:24:51 -08:00
netlogic staging: netlogic: Replace pr_* with netdev_* 2016-03-11 22:09:09 -08:00
nvec Staging: nvec: removes an unnecessary cast on a void pointer 2016-03-11 22:09:09 -08:00
octeon staging: octeon: Fix braces in condition statement 2016-03-11 22:09:09 -08:00
octeon-usb staging: octeon-usb: update TODO 2016-02-25 22:38:16 -08:00
rdma Staging: rdma: Use min macro instead of ternary operator 2016-03-11 22:09:09 -08:00
rtl8188eu Staging: rtl8188eu: Remove function rtw_freq2ch 2016-03-11 22:09:09 -08:00
rtl8192e staging: rtl8192e: rtllib_crypt_tkip: Remove unnecessary else after return 2016-03-11 22:09:09 -08:00
rtl8192u staging: rtl8192u: ieee80211_crypt: Remove unnecessary else after return 2016-03-11 22:09:09 -08:00
rtl8712 Staging: rtl8712: Remove function r8712_setptm_cmd and r8712_gettssi_cmd 2016-03-11 22:09:09 -08:00
rtl8723au Staging: rtl8723au: Remove unused functions and prototype 2016-03-11 22:09:09 -08:00
rts5208 staging: rts5208: Change form of NULL comparisons 2016-03-11 22:09:09 -08:00
skein staging: skein: threefish_block: Use rol64 2016-03-11 22:09:09 -08:00
slicoss Staging: slicoss: changes comparisons to NULL in slicoss.c 2016-03-11 22:09:09 -08:00
sm750fb Staging: sm750fb: Remove unused functions 2016-03-11 22:09:09 -08:00
speakup staging: speakup: Remove unnecessary test in if condition 2016-03-05 14:48:04 -08:00
ste_rmi4 staging: ste_rmi4: simplify NULL tests 2016-03-11 22:09:09 -08:00
unisys staging: unisys: visornic: Remove unnecessary else after return 2016-03-10 19:29:45 -08:00
vme staging: vme: devices: Replace kzalloc with devm_kzalloc 2016-03-11 22:09:09 -08:00
vt6655 Staging: vt6655: Remove & from function name. 2016-03-10 19:21:18 -08:00
vt6656 staging: vt6656: Remove unnecessary parentheses 2016-03-10 19:21:18 -08:00
wilc1000 staging: wilc1000: Possible unnecessary 'out of memory' message 2016-03-11 22:09:09 -08:00
wlan-ng Staging: wlan-ng: Do not print message if kzalloc() failed. 2016-03-11 22:09:09 -08:00
xgifb Staging: xgifb: remove useless blank lines 2016-03-11 22:09:09 -08:00
Kconfig Staging: gdm72xx: Remove gdm72xx driver 2016-03-11 22:09:09 -08:00
Makefile Staging: gdm72xx: Remove gdm72xx driver 2016-03-11 22:09:09 -08:00