linux-staging.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: rtl8192u: use min/max macros
@ 2022-04-07  0:09 Rebecca Mckeever
  2022-04-07  0:09 ` [PATCH 1/2] staging: rtl8192u: use max macro instead of ternary operator Rebecca Mckeever
  2022-04-07  0:09 ` [PATCH 2/2] staging: rtl8192u: use min_t/max_t macros instead of if else Rebecca Mckeever
  0 siblings, 2 replies; 5+ messages in thread
From: Rebecca Mckeever @ 2022-04-07  0:09 UTC (permalink / raw)
  To: outreachy
  Cc: Greg Kroah-Hartman, linux-staging, linux-kernel, Rebecca Mckeever

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-07  7:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-07  0:09 [PATCH 0/2] staging: rtl8192u: use min/max macros Rebecca Mckeever
2022-04-07  0:09 ` [PATCH 1/2] staging: rtl8192u: use max macro instead of ternary operator Rebecca Mckeever
2022-04-07  7:28   ` Dan Carpenter
2022-04-07  0:09 ` [PATCH 2/2] staging: rtl8192u: use min_t/max_t macros instead of if else Rebecca Mckeever
2022-04-07  7:49   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).