mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
wm8750: Fix calculation of number of array elements
Coverity says that the division by sizeof(*s->rate) might be wrong. I think that coverity is right. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
This commit is contained in:
parent
c7c530cd3e
commit
9841aee16f
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ static void wm8750_pre_save(void *opaque)
|
|||
{
|
||||
WM8750State *s = opaque;
|
||||
|
||||
s->rate_vmstate = (s->rate - wm_rate_table) / sizeof(*s->rate);
|
||||
s->rate_vmstate = s->rate - wm_rate_table;
|
||||
}
|
||||
|
||||
static int wm8750_post_load(void *opaque, int version_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue