Re: [PATCH-for-5.0 v2 03/11] hw/i2c/pm_smbus: Remove dead assignment

2020-03-23 Thread Alistair Francis
On Sat, Mar 21, 2020 at 7:45 AM Philippe Mathieu-Daudé wrote: > > Fix warning reported by Clang static code analyzer: > > CC hw/i2c/pm_smbus.o > hw/i2c/pm_smbus.c:187:17: warning: Value stored to 'ret' is never read > ret = 0; > ^ ~ > > Reported-b

[PATCH-for-5.0 v2 03/11] hw/i2c/pm_smbus: Remove dead assignment

2020-03-21 Thread Philippe Mathieu-Daudé
Fix warning reported by Clang static code analyzer: CC hw/i2c/pm_smbus.o hw/i2c/pm_smbus.c:187:17: warning: Value stored to 'ret' is never read ret = 0; ^ ~ Reported-by: Clang Static Analyzer Signed-off-by: Philippe Mathieu-Daudé --- hw/i2c/pm_