diff options
| author | Liu Yuan <liuyuan@cmss.chinamobile.com> | 2015-02-18 11:57:55 +0800 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2015-03-10 14:02:23 +0100 |
| commit | 833a7cc36e63653641558ba27148076f9a32062f (patch) | |
| tree | a0daafb1344b0547457472bfe45947d554794a63 /hw/timer/stm32f2xx_timer.c | |
| parent | e0c59cc7608f84fcaddc827e05d38af8d10447a3 (diff) | |
| download | focaccia-qemu-833a7cc36e63653641558ba27148076f9a32062f.tar.gz focaccia-qemu-833a7cc36e63653641558ba27148076f9a32062f.zip | |
sheepdog: fix confused return values
These functions mix up -1 and -errno in return values and would might cause trouble error handling in the call chain. This patch let them return -errno and add some comments. Cc: qemu-devel@nongnu.org Cc: Markus Armbruster <armbru@redhat.com> Cc: Kevin Wolf <kwolf@redhat.com> Cc: Stefan Hajnoczi <stefanha@redhat.com> Reported-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Liu Yuan <liuyuan@cmss.chinamobile.com> Message-id: 1424231875-7131-1-git-send-email-namei.unix@gmail.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/timer/stm32f2xx_timer.c')
0 files changed, 0 insertions, 0 deletions