Ben Widawsky 2c729dc8ce pci: Change error_report to assert(3)
Asserts are used for developer bugs. As registering a bar of the wrong
size is not something that should be possible for a user to achieve,
this is a developer bug.

While here, use the more obvious helper function.

Signed-off-by: Ben Widawsky <ben.widawsky@intel.com>
Message-Id: <20201015181411.89104-1-ben.widawsky@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2020-10-30 06:48:53 -04:00
..
2020-10-21 11:36:19 +02:00
2020-10-29 11:40:04 +00:00
2020-10-27 11:10:44 +00:00
2020-10-29 11:40:04 +00:00
2020-10-30 06:48:53 -04:00
2020-10-29 11:40:04 +00:00