Re: [PATCH] aspeed/i2c:fix uninitialized variable warning

2020-02-06 Thread Laurent Vivier
Le 06/02/2020 à 09:21, Thomas Huth a écrit : > On 06/02/2020 05.07, kuhn.chen...@huawei.com wrote: >> From: Chen Qun >> >> Fix warning: >> hw/i2c/aspeed_i2c.c: In function ‘aspeed_i2c_bus_write’: >> glib/glib-autocleanups.h:28:3: warning: ‘cmd_flags’ may be >> used uninitialized in this function [

Re: [PATCH] aspeed/i2c:fix uninitialized variable warning

2020-02-06 Thread Thomas Huth
On 06/02/2020 05.07, kuhn.chen...@huawei.com wrote: > From: Chen Qun > > Fix warning: > hw/i2c/aspeed_i2c.c: In function ‘aspeed_i2c_bus_write’: > glib/glib-autocleanups.h:28:3: warning: ‘cmd_flags’ may be > used uninitialized in this function [-Wmaybe-uninitialized] >g_free (*pp); >^

[PATCH] aspeed/i2c:fix uninitialized variable warning

2020-02-05 Thread kuhn.chenqun
From: Chen Qun Fix warning: hw/i2c/aspeed_i2c.c: In function ‘aspeed_i2c_bus_write’: glib/glib-autocleanups.h:28:3: warning: ‘cmd_flags’ may be used uninitialized in this function [-Wmaybe-uninitialized] g_free (*pp); ^~~~ hw/i2c/aspeed_i2c.c:403:22: note: ‘cmd_flags’ was declared h