hw/intc/sh_intc: Remove unneeded local variable initialisers
The sh_intc_locate function will either init these or not return so no need to initialise them. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <15e04aa665c68ab5df47bbf505346d413be2fc1c.1635541329.git.balaton@eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
This commit is contained in:
parent
36cf5ee885
commit
3233178789
@ -195,14 +195,13 @@ static void sh_intc_toggle_mask(struct intc_desc *desc, intc_enum id,
|
||||
}
|
||||
}
|
||||
|
||||
static uint64_t sh_intc_read(void *opaque, hwaddr offset,
|
||||
unsigned size)
|
||||
static uint64_t sh_intc_read(void *opaque, hwaddr offset, unsigned size)
|
||||
{
|
||||
struct intc_desc *desc = opaque;
|
||||
intc_enum *enum_ids = NULL;
|
||||
unsigned int first = 0;
|
||||
unsigned int width = 0;
|
||||
unsigned int mode = 0;
|
||||
intc_enum *enum_ids;
|
||||
unsigned int first;
|
||||
unsigned int width;
|
||||
unsigned int mode;
|
||||
unsigned long *valuep;
|
||||
|
||||
sh_intc_locate(desc, (unsigned long)offset, &valuep,
|
||||
@ -215,12 +214,12 @@ static void sh_intc_write(void *opaque, hwaddr offset,
|
||||
uint64_t value, unsigned size)
|
||||
{
|
||||
struct intc_desc *desc = opaque;
|
||||
intc_enum *enum_ids = NULL;
|
||||
unsigned int first = 0;
|
||||
unsigned int width = 0;
|
||||
unsigned int mode = 0;
|
||||
unsigned int k;
|
||||
intc_enum *enum_ids;
|
||||
unsigned int first;
|
||||
unsigned int width;
|
||||
unsigned int mode;
|
||||
unsigned long *valuep;
|
||||
unsigned int k;
|
||||
unsigned long mask;
|
||||
|
||||
trace_sh_intc_write(size, (uint64_t)offset, value);
|
||||
|
Loading…
Reference in New Issue
Block a user