hw/block/pflash_cfi01: Correct the type of PFlashCFI01.ro
PFlashCFI01.ro is a bool, declare it as such. Signed-off-by: David Edmondson <david.edmondson@oracle.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210216142721.1985543-3-david.edmondson@oracle.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
2b49cd652a
commit
2231bee28c
|
@ -82,7 +82,7 @@ struct PFlashCFI01 {
|
||||||
uint8_t max_device_width; /* max device width in bytes */
|
uint8_t max_device_width; /* max device width in bytes */
|
||||||
uint32_t features;
|
uint32_t features;
|
||||||
uint8_t wcycle; /* if 0, the flash is read normally */
|
uint8_t wcycle; /* if 0, the flash is read normally */
|
||||||
int ro;
|
bool ro;
|
||||||
uint8_t cmd;
|
uint8_t cmd;
|
||||||
uint8_t status;
|
uint8_t status;
|
||||||
uint16_t ident0;
|
uint16_t ident0;
|
||||||
|
@ -853,7 +853,7 @@ static void pflash_cfi01_realize(DeviceState *dev, Error **errp)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pfl->ro = 0;
|
pfl->ro = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pfl->blk) {
|
if (pfl->blk) {
|
||||||
|
|
Loading…
Reference in a new issue