Thread (17 messages) 17 messages, 4 authors, 2020-06-26

Re: [PATCH 6/9] regulator: tps65217-regulator: Use the returned value of tps65217_reg_read()

From: Lee Jones <hidden>
Date: 2020-06-26 15:31:26
Also in: linux-omap, lkml

On Fri, 26 Jun 2020, Mark Brown wrote:
On Fri, Jun 26, 2020 at 07:57:35AM +0100, Lee Jones wrote:
quoted
Until now the aforementioned return value has been ignored.
This is only aforementioned in the subject.
quoted
 		/* Store default strobe info */
 		ret = tps65217_reg_read(tps, regulators[i].bypass_reg, &val);
+		if (ret)
+			return ret;
+
We should really be logging an error there rather than just returning,
that way it's a bit more apparent to someone debugging things what went
wrong if there is actually a problem.
Would you like me to fix that up subsequently?

-- 
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help