Re: [PATCH-for-5.0 v2 04/11] hw/input/adb-kbd: Remove dead assignment

2020-03-21 Thread David Gibson
On Sat, Mar 21, 2020 at 03:41:03PM +0100, Philippe Mathieu-Daudé wrote: > Since commit 5a1f49718 the 'olen' variable is not really > used. Remove it to fix a warning reported by Clang static > code analyzer: > > CC hw/input/adb-kbd.o > hw/input/adb-kbd.c:200:5: warning: Value stored to

[PATCH-for-5.0 v2 04/11] hw/input/adb-kbd: Remove dead assignment

2020-03-21 Thread Philippe Mathieu-Daudé
Since commit 5a1f49718 the 'olen' variable is not really used. Remove it to fix a warning reported by Clang static code analyzer: CC hw/input/adb-kbd.o hw/input/adb-kbd.c:200:5: warning: Value stored to 'olen' is never read olen = 0; ^ ~ Fixes: 5a1f49718 (adb: add supp