2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-25 21:54:06 +08:00
linux-next/drivers/staging/rtl8192u
Xenia Ragiadakou f2c3d80097 staging: rtl8192u: replace macro rx_hal_is_cck_rate() in r8192U_core.c
This patch replaces macro rx_hal_is_cck_rate() with
the static inline function rx_hal_is_cck_rate().

This replacement was suggested by Dan Carpenter and
has the following benefits:
- improves code readability
- guarantees type safety
- improves code efficiency by enforcing the evaluation of
  the simple boolean expression (!pdrvinfo->RxHT) to be
  done before the evaluation of the more complex one
  (pdrvinfo->RxRate == DESC90_RATE1M ||
   pdrvinfo->RxRate == DESC90_RATE2M ||
   pdrvinfo->RxRate == DESC90_RATE5_5M ||
   pdrvinfo->RxRate == DESC90_RATE11M)

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-06-05 15:37:22 -07:00
..
ieee80211 STAGING: rtl8192u: fix checkpatch error by adding space after switch 2013-05-13 07:17:58 -07:00
authors
changes staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
copying
dot11d.h
ieee80211_crypt.h
Kconfig
Makefile
r819xU_cmdpkt.c rtl8192u: fix whitespace around if statements in r819xU_cmdpkt.c 2013-05-16 16:43:33 -07:00
r819xU_cmdpkt.h STAGING: rtl8192u: fix checkpatch error about pointer position in r819xU_cmdpkt 2013-05-13 07:11:47 -07:00
r819xU_firmware_img.c
r819xU_firmware_img.h
r819xU_firmware.c rtl8192u: fix whitespace around if statements in r819xU_firmware.c 2013-05-16 16:43:34 -07:00
r819xU_firmware.h staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
r819xU_HTGen.h staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
r819xU_HTType.h staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
r819xU_phy.c STAGING: rtl8192u: fix checkpatch error by adding space after switch 2013-05-13 07:17:58 -07:00
r819xU_phy.h STAGING: rtl8192u: fix checkpatch error about pointer position in r819xU_phy 2013-05-13 07:11:48 -07:00
r819xU_phyreg.h staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
r8180_93cx6.c rtl8192u: fix whitespace around ~ in r8180_93cx6.c 2013-05-16 16:44:49 -07:00
r8180_93cx6.h staging: rtl8192u Fix a typo. 2012-05-01 21:50:09 -07:00
r8180_pm.c
r8180_pm.h staging/rtl8192u: indent with tabs, not spaces 2013-01-07 12:53:40 -08:00
r8190_rtl8256.c rtl8192u: remove whitespace after '(' and before ')' in r8190_rtl8256.c 2013-05-16 16:45:51 -07:00
r8190_rtl8256.h STAGING: rtl8192u: fix checkpatch error about pointer position in r8190_rtl8256 2013-05-13 07:11:48 -07:00
r8192U_core.c staging: rtl8192u: replace macro rx_hal_is_cck_rate() in r8192U_core.c 2013-06-05 15:37:22 -07:00
r8192U_dm.c rtl8192u: remove whitespace after '(' and before ')' in r8192U_dm.c 2013-05-16 16:45:53 -07:00
r8192U_dm.h staging: rtl8192u: fix coding style 2013-03-28 16:07:25 -07:00
r8192U_hw.h staging/rtl8192u: cleanfile run 2013-01-07 12:52:58 -08:00
r8192U_wx.c STAGING: rtl8192u: fix checkpatch error by adding space after switch 2013-05-13 07:17:58 -07:00
r8192U_wx.h staging: rtl8192u Fix a typo. 2012-05-01 21:50:09 -07:00
r8192U.h rtl8192u: remove whitespace after '(' and before ')' in r8192U.h 2013-05-16 16:45:51 -07:00