Skip to content

staging: pi433: Cleanup & fix potential resource leak.

Shahar Avidar kernel-janitors linux-staging lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 5 repliesIn review
  2. v26 patches 4 repliesSuperseded
  3. v15 patches 2 repliesSuperseded

Changes in v3 from the cover letter

Followed by more of Dan Carpenter's <[email protected]> comments:
- Undo pi433 init calls reordering.
- Remove "unreg_spi_drv" tag.
- Undo return value check for "debugfs_create_dir".
- Undo "if" statements update.
- Undo pi433_init return var renaming.
- Split patch 5 into 3: duplicate code removal, bug fix, reorder exit calls.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7staging: pi433: Rename struct pi433_device buffer field to tx_buffer.drivers/staging/pi433/pi433_if.c+9 -90 replies
2/7staging: pi433: Rename struct pi433_device instances to pi433.drivers/staging/pi433/pi433_if.c+327 -3270 replies
3/7staging: pi433: Replace pi433_receive param void type to struct pi433_device.drivers/staging/pi433/pi433_if.c+1 -20 replies
4/7staging: pi433: Rename "pi433_dev" of type "dev_t" to "pi433_devt"drivers/staging/pi433/pi433_if.c+7 -70 replies
5/7staging: pi433: Remove duplicated code using the "goto" error recovery scheme.drivers/staging/pi433/pi433_if.c+10 -102 replies
6/7staging: pi433: Add debugfs_remove in case of driver register fails.drivers/staging/pi433/pi433_if.c+1 -02 replies
7/7staging: pi433: Reorder pi433_exit cleanup calls.drivers/staging/pi433/pi433_if.c+1 -10 replies

Reviews trailers per patch

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

PatchDan Carpenter
SeriesR-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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/7] staging: pi433: Cleanup & fix potential resource leak.

This patchset improves readability, maintainability & fixes 1 bug:
- Rename device related vars.
- Update pi433_receive param type.
- Remove duplicated code in pi433_init.
- Reorder pi433_exit calls.
- Fix a potential debugfs resource leak.

v2->v1:
Followed by Dan Carpenter's <[email protected]> comments:
- Remove empty "fail" goto tag.
- Reorder pi433 init & exit calls so they have reverse order.
- Add "unreg_spi_drv" goto tag.
- Check "debugfs_create_dir" return value.
- Update "if" statements for consistency.
- Rename pi433_init return var to the more common used "ret".
v2->v3:
Followed by more of Dan Carpenter's <[email protected]> comments:
- Undo pi433 init calls reordering.
- Remove "unreg_spi_drv" tag.
- Undo return value check for "debugfs_create_dir".
- Undo "if" statements update.
- Undo pi433_init return var renaming.
- Split patch 5 into 3: duplicate code removal, bug fix, reorder exit calls.

Shahar Avidar (7):
staging: pi433: Rename struct pi433_device buffer field to tx_buffer.
staging: pi433: Rename struct pi433_device instances to pi433.
staging: pi433: Replace pi433_receive param void type to struct

    pi433_device.

staging: pi433: Rename "pi433_dev" of type "dev_t" to "pi433_devt"
staging: pi433: Remove duplicated code using the "goto" error recovery
scheme.
staging: pi433: Add debugfs_remove in case of driver register fails.
staging: pi433: Reorder pi433_exit cleanup calls.

 drivers/staging/pi433/pi433_if.c | 690 +++++++++++++++----------------
 1 file changed, 345 insertions(+), 345 deletions(-)

base-commit: a103e5ad21992384b0b4332df52e0467107eb113
prerequisite-patch-id: 91943193af2fea74182be67fb583235a3fbeb77b
prerequisite-patch-id: 2cad031ba6a0782a67ab1645ff034a8be65c2e76
prerequisite-patch-id: 1a852ed8f9d133aec7c651fd9007e59e39c55fb7

Signature · 1 line
2.34.1