Re: [U-Boot] [PATCH 1/1] i2c: mvtwsi.c: Avoid NULL dereference

2018-02-06 Thread Heiko Schocher
Hello Heinrich, Am 31.01.2018 um 00:57 schrieb Heinrich Schuchardt: 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 --- drivers/i2c/mvtwsi.c | 3 ++- 1 file changed, 2 insertions(+),

[U-Boot] [PATCH 1/1] i2c: mvtwsi.c: Avoid NULL dereference

2018-01-30 Thread Heinrich Schuchardt
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 --- drivers/i2c/mvtwsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c