diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-04-25 19:31:06 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-25 19:31:06 +0000 |
commit | 22ed1d34789b184aaaa28c1e4620ce4467744cec (patch) | |
tree | 1402cbaab355bffa77a60e37c74ef54c3032b45d /hw/wm8750.c | |
parent | 7f5b7d3e2c19c0aa52dcac0a10d473c7fd142450 (diff) | |
download | qemu-22ed1d34789b184aaaa28c1e4620ce4467744cec.zip qemu-22ed1d34789b184aaaa28c1e4620ce4467744cec.tar.gz qemu-22ed1d34789b184aaaa28c1e4620ce4467744cec.tar.bz2 |
arm: remove dead assignments, spotted by clang analyzer
Value stored is never read.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/wm8750.c')
-rw-r--r-- | hw/wm8750.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/wm8750.c b/hw/wm8750.c index 6064da0..ce43c23 100644 --- a/hw/wm8750.c +++ b/hw/wm8750.c @@ -62,12 +62,11 @@ static const uint8_t wm8750_vol_db_table[] = { static inline void wm8750_in_load(WM8750State *s) { - int acquired; if (s->idx_in + s->req_in <= sizeof(s->data_in)) return; s->idx_in = audio_MAX(0, (int) sizeof(s->data_in) - s->req_in); - acquired = AUD_read(*s->in[0], s->data_in + s->idx_in, - sizeof(s->data_in) - s->idx_in); + AUD_read(*s->in[0], s->data_in + s->idx_in, + sizeof(s->data_in) - s->idx_in); } static inline void wm8750_out_flush(WM8750State *s) |