]> git.sur5r.net Git - u-boot/commit
i2c: mvtwsi.c: Avoid NULL dereference
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 30 Jan 2018 23:57:17 +0000 (00:57 +0100)
committerHeiko Schocher <hs@denx.de>
Tue, 6 Feb 2018 06:02:32 +0000 (07:02 +0100)
commit8bcf12ccce89ef9c77d9322930445b4f4ca3b822
treed79f23fb6ae97c0b1488c97a670f36439439555e
parent9cef983d1c5d3c4150f70346346ace29b1dfe432
i2c: mvtwsi.c: Avoid NULL dereference

For '#ifndef CONFIG_DM_I2C' twsi_i2c_init() passes NULL as
4th parameter to __twsi_i2c_init().

Identified with cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/i2c/mvtwsi.c