]> git.baikalelectronics.ru Git - uboot.git/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)
commitc5aa74ee4ece1f3497c27a5d50a98782ebb8ed1b
treed79f23fb6ae97c0b1488c97a670f36439439555e
parent453d946bdf8e2e4e9e35d315d057d234b9b5d95b
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