[PATCH 0/2] staging: rtl8192u: use min/max macros

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



These patches replace ternary and if else statements with an
equivalent min/max macro. Found with minmax coccinelle script.

---
I noticed that ieee80211.h includes linux/kernel.h and linux/jiffies.h,
which both include linux/minmax.h. Would it be a good idea to add
#include <linux/minmax.h>
in ieee80211.h in case the content of linux/kernel.h or linux/jiffies.h
changes?
---

Rebecca Mckeever (2):
  staging: rtl8192u: use max macro instead of ternary operator
  staging: rtl8192u: use min_t/max_t macros instead of if else

 drivers/staging/rtl8192u/ieee80211/ieee80211_wx.c   |  2 +-
 drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c | 13 +++++--------
 2 files changed, 6 insertions(+), 9 deletions(-)

-- 
2.32.0





[Index of Archives]     [Linux Driver Development]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux