Skip to content

staging: rtl8723bs: refactor rtw_aes_decrypt()

Lin YuChen linux-staging lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 1 replySuperseded

Changes in v3 from the cover letter

- Follow Dan Carpenter's suggestion to use direct returns (e.g., return _SUCCESS or _FAIL) instead of "goto exit" for the newly introduced guard clauses.
- Revert unrelated line-breaking and formatting changes to ensure the patch remains focused strictly on the refactoring of indentation levels, as advised by Dan.
- Keep the two-step patch series structure requested by Greg KH.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2staging: rtl8723bs: use guard clause for AES checkdrivers/staging/rtl8723bs/core/rtw_security.c+52 -520 replies
2/2staging: rtl8723bs: use guard clause for stainfo checkdrivers/staging/rtl8723bs/core/rtw_security.c+47 -490 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDan Carpenter
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] staging: rtl8723bs: refactor rtw_aes_decrypt()

This series refactors rtw_aes_decrypt() to improve code readability by reducing nesting levels through the use of guard clauses.

Changes in v3:
- Follow Dan Carpenter's suggestion to use direct returns (e.g., return _SUCCESS or _FAIL) instead of "goto exit" for the newly introduced guard clauses.
- Revert unrelated line-breaking and formatting changes to ensure the patch remains focused strictly on the refactoring of indentation levels, as advised by Dan.
- Keep the two-step patch series structure requested by Greg KH.

Changes in v2:
- Split the refactor into a two-patch series to make logic verification easier, as requested by Greg KH.

Lin YuChen (2):
staging: rtl8723bs: use guard clause for AES check
staging: rtl8723bs: use guard clause for stainfo check

 drivers/staging/rtl8723bs/core/rtw_security.c | 86 +++++++++----------
 1 file changed, 42 insertions(+), 44 deletions(-)
Signature · 1 line
2.34.1