[PATCH v2 1/1] pinctrl: mediatek: correct error handling

Tom Rini trini at konsulko.com
Tue Jan 19 14:06:06 CET 2021


On Sun, Dec 27, 2020 at 09:18:26PM +0100, Heinrich Schuchardt wrote:

> If no GPIO controller is found, the return value should not depend on a
> random value on the stack. Initialize variable ret.
> 
> The problem was indicated by cppcheck.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Acked-by: Chunfeng Yun <chunfeng.yun at mediatek.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210119/c797462f/attachment.sig>


More information about the U-Boot mailing list