public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Qcom Geni exit path cleanups
@ 2024-12-27 22:32 Andi Shyti
  2024-12-27 22:32 ` [PATCH v3 1/2] i2c: qcom-geni: Use dev_err_probe in the probe function Andi Shyti
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andi Shyti @ 2024-12-27 22:32 UTC (permalink / raw)
  To: linux-arm-msm, linux-i2c; +Cc: Mukesh Kumar Savaliya, Vladimir Zapolskiy

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(-)

-- 
2.45.2


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-30  2:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-27 22:32 [PATCH v3 0/2] Qcom Geni exit path cleanups Andi Shyti
2024-12-27 22:32 ` [PATCH v3 1/2] i2c: qcom-geni: Use dev_err_probe in the probe function Andi Shyti
2024-12-27 22:32 ` [PATCH v3 2/2] i2c: qcom-geni: Simplify error handling in " Andi Shyti
2024-12-28 22:11   ` Vladimir Zapolskiy
2024-12-28 22:13   ` Vladimir Zapolskiy
2024-12-30  2:02 ` [PATCH v3 0/2] Qcom Geni exit path cleanups Andi Shyti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox