Skip to content

Qcom Geni exit path cleanups

Andi Shyti linux-arm-msm linux-i2c 3 versions – Applied

Status from this message: merged to i2c/i2c-host.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesApplied
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Don't forget to assign ret the proper value.
- Add tags in patch 1.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2i2c: qcom-geni: Use dev_err_probe in the probe functiondrivers/i2c/busses/i2c-qcom-geni.c+14 -190 replies
2/2i2c: qcom-geni: Simplify error handling in probe functiondrivers/i2c/busses/i2c-qcom-geni.c+18 -152 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchVladimir ZapolskiyMukesh Kumar Savaliya
1/2R-b A-b
2/2R-b R-b

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] Qcom Geni exit path cleanups

Hi,

I am submitting two trivial cleanups in this series. The first replaces all instances of dev_err with dev_err_probe throughout the probe function for consistency. The second improves the error exit path by introducing a single 'goto' label for better maintainability.

Thank you Mukesh and Vladimir for your reviews.

Thank you,
Andi

Changelog:
----------
v2 -> v3:
- Don't forget to assign ret the proper value.
- Add tags in patch 1.
v1 -> v2:
- Updated the final return statement to return 'ret' instead of '0' for consistency. Since 'ret' already holds the value '0', this change is purely aesthetic.
- Renamed the exit label from 'err_off' to 'err_resources' for improved clarity and alignment with its purpose.

Andi Shyti (2):
i2c: qcom-geni: Use dev_err_probe in the probe function
i2c: qcom-geni: Simplify error handling in probe function

 drivers/i2c/busses/i2c-qcom-geni.c | 56 ++++++++++++++----------------
 1 file changed, 27 insertions(+), 29 deletions(-)
Signature · 1 line
2.45.2