diff options
| author | Richard Henderson | 2021-07-12 21:57:41 +0200 |
|---|---|---|
| committer | Richard Henderson | 2021-07-26 19:07:07 +0200 |
| commit | 79fe9e4313f9dbad8ee4619031900ccabd4f8824 (patch) | |
| tree | 4fa2ad4f263ff17e0bc7d5d66fce39147aed298e /hw/audio | |
| parent | net/checksum: Remove unused variable in net_checksum_add_iov (diff) | |
| download | qemu-79fe9e4313f9dbad8ee4619031900ccabd4f8824.tar.gz qemu-79fe9e4313f9dbad8ee4619031900ccabd4f8824.tar.xz qemu-79fe9e4313f9dbad8ee4619031900ccabd4f8824.zip | |
hw/audio/adlib: Remove unused variable in adlib_callback
From clang-13:
hw/audio/adlib.c:189:18: error: variable 'net' set but not used \
[-Werror,-Wunused-but-set-variable]
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/audio')
| -rw-r--r-- | hw/audio/adlib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c index 42d50d2fdc..5f979b1487 100644 --- a/hw/audio/adlib.c +++ b/hw/audio/adlib.c @@ -186,7 +186,7 @@ static int write_audio (AdlibState *s, int samples) static void adlib_callback (void *opaque, int free) { AdlibState *s = opaque; - int samples, net = 0, to_play, written; + int samples, to_play, written; samples = free >> SHIFT; if (!(s->active && s->enabled) || !samples) { @@ -219,7 +219,6 @@ static void adlib_callback (void *opaque, int free) written = write_audio (s, samples); if (written) { - net += written; samples -= written; s->pos = (s->pos + written) % s->samples; } |
