Re: [PATCH v2 1/4] staging: r8188eu: refactor rtw_is_cckrates_included()

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

 



On 8/16/21 6:15 PM, Joe Perches wrote:
On Mon, 2021-08-16 at 14:59 +0200, Fabio M. De Francesco wrote:
On Monday, August 16, 2021 1:54:27 PM CEST Michael Straube wrote:
Refactor function rtw_is_cckrates_included(). Improves readability
and slightly reduces object file size.

Signed-off-by: Michael Straube <straube.linux@xxxxxxxxx>
---
v1 -> v2
Refactored to more compact code as suggested by Joe Perches.

  drivers/staging/r8188eu/core/rtw_ieee80211.c | 9 ++++-----
  1 file changed, 4 insertions(+), 5 deletions(-)


Thanks for redoing the series as suggested by Joe Perches.
This is a perfect case where conciseness and readability don't clash and
instead the former enhances the latter.

Perhaps do the whole thing in one go (moving the & 0x7f into the helper
avoids an early loop exit defect when the rate being indexed is 0x80)


I have sent a new patch that does the refactoring in one go,
so this series is obsolete now. ;)

Regards,
Michael




[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