projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0743f41
)
qemu-file: Simplify qemu_file_get_error()
author
Juan Quintela
<quintela@redhat.com>
Wed, 25 Oct 2023 09:11:14 +0000
(11:11 +0200)
committer
Juan Quintela
<quintela@redhat.com>
Tue, 31 Oct 2023 07:44:33 +0000
(08:44 +0100)
If we pass a NULL error is the same that returning directly the value.
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <
20231025091117
.6342-10-quintela@redhat.com>
migration/qemu-file.c
patch
|
blob
|
history
diff --git
a/migration/qemu-file.c
b/migration/qemu-file.c
index 0158db2a54b1e7607243f611b52c82e4c88a2afd..7e738743cea088626c177fe75bd39ddd761757ab 100644
(file)
--- a/
migration/qemu-file.c
+++ b/
migration/qemu-file.c
@@
-204,7
+204,7
@@
void qemu_file_set_error_obj(QEMUFile *f, int ret, Error *err)
*/
int qemu_file_get_error(QEMUFile *f)
{
- return
qemu_file_get_error_obj(f, NULL)
;
+ return
f->last_error
;
}
/*