summaryrefslogtreecommitdiffstats
path: root/hw/misc/armsse-cpu-pwrctrl.c
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2021-02-02 13:49:55 +0100
committerEric Blake2021-03-08 23:03:32 +0100
commit15ce94a68ca6730466c565c3d29971aab3087bf1 (patch)
tree823abc2a4f102ecbb4875513a9caf7493cee2242 /hw/misc/armsse-cpu-pwrctrl.c
parentblock/qcow2: simplify qcow2_co_invalidate_cache() (diff)
downloadqemu-15ce94a68ca6730466c565c3d29971aab3087bf1.tar.gz
qemu-15ce94a68ca6730466c565c3d29971aab3087bf1.tar.xz
qemu-15ce94a68ca6730466c565c3d29971aab3087bf1.zip
block/qed: bdrv_qed_do_open: deal with errp
Always set errp on failure. The generic bdrv_open_driver supports driver functions which can return a negative value but forget to set errp. That's a strange thing. Let's improve bdrv_qed_do_open to not behave this way. This allows the simplification of code in bdrv_qed_co_invalidate_cache(). Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Reviewed-by: Greg Kurz <groug@kaod.org> Message-Id: <20210202124956.63146-14-vsementsov@virtuozzo.com> [eblake: commit message grammar tweak] Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'hw/misc/armsse-cpu-pwrctrl.c')
0 files changed, 0 insertions, 0 deletions