diff options
author | David Hildenbrand <david@redhat.com> | 2018-10-05 11:20:15 +0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2018-10-24 06:44:59 -0300 |
commit | e40c5b6b3f5483bd4e1f493853e6a1f12eba1e93 (patch) | |
tree | 7edcef1063bb38599fb2d0931973f939faabb51d /net/can | |
parent | 15cea5ae813f35bf34363511338219102f45ff39 (diff) |
memory-device: forward errors in get_region_size()/get_plugged_size()
Let's properly forward the errors, so errors from get_region_size() /
get_plugged_size() can be handled.
Users right now call both functions after the device has been realized,
which is will never fail, so it is fine to continue using error_abort.
While at it, remove a leftover error check (suggested by Igor).
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20181005092024.14344-8-david@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions