Re: [Qemu-devel] [PATCH] audio: Fix warning from static code analysis

2012-09-22 Thread malc
On Sat, 22 Sep 2012, Stefan Weil wrote: > Am 03.09.2012 21:25, schrieb Stefan Weil: > > smatch report: > > audio/audio_template.h:416 AUD_open_out(18) warn: > > variable dereferenced before check 'as' (see line 414) > > > > Moving the ldebug statement after the statement which checks 'as' > > f

Re: [Qemu-devel] [PATCH] audio: Fix warning from static code analysis

2012-09-22 Thread Stefan Weil
Am 03.09.2012 21:25, schrieb Stefan Weil: smatch report: audio/audio_template.h:416 AUD_open_out(18) warn: variable dereferenced before check 'as' (see line 414) Moving the ldebug statement after the statement which checks 'as' fixes that warning. Signed-off-by: Stefan Weil --- This patch fa

[Qemu-devel] [PATCH] audio: Fix warning from static code analysis

2012-09-03 Thread Stefan Weil
smatch report: audio/audio_template.h:416 AUD_open_out(18) warn: variable dereferenced before check 'as' (see line 414) Moving the ldebug statement after the statement which checks 'as' fixes that warning. Signed-off-by: Stefan Weil --- This patch fails when checked by checkpatch.pl because it