mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qdev: Remove PropertyInfo range checking
Range checking in PropertyInfo is now used only for pci_devfn properties and some error reporting. Remove all code that implements it in the various property types, and the now unused fields. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> [AF: Fix blocksize min/max for 32-bit hosts by using const int64_t.] Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
c08fb2ac00
commit
27712df95d
2 changed files with 26 additions and 82 deletions
|
@ -122,8 +122,6 @@ struct PropertyInfo {
|
|||
const char *name;
|
||||
const char *legacy_name;
|
||||
const char **enum_table;
|
||||
int64_t min;
|
||||
int64_t max;
|
||||
int (*parse)(DeviceState *dev, Property *prop, const char *str);
|
||||
int (*print)(DeviceState *dev, Property *prop, char *dest, size_t len);
|
||||
ObjectPropertyAccessor *get;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue