[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1649288226.git.remckee0@gmail.com>
Date: Wed, 6 Apr 2022 19:09:42 -0500
From: Rebecca Mckeever <remckee0@...il.com>
To: outreachy@...ts.linux.dev
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
Rebecca Mckeever <remckee0@...il.com>
Subject: [PATCH 0/2] staging: rtl8192u: use min/max macros
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
Powered by blists - more mailing lists