[Qemu-devel] [PATCH] coverity-model: Fix indentation messed up in commit 04a0afe5285

Markus Armbruster posted 1 patch 5 years, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20180614132242.12970-1-armbru@redhat.com
Test checkpatch passed
Test docker-mingw@fedora passed
Test docker-quick@centos7 passed
Test s390x passed
scripts/coverity-model.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
[Qemu-devel] [PATCH] coverity-model: Fix indentation messed up in commit 04a0afe5285
Posted by Markus Armbruster 5 years, 10 months ago
Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 scripts/coverity-model.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/coverity-model.c b/scripts/coverity-model.c
index 48b112393b..2ec753db05 100644
--- a/scripts/coverity-model.c
+++ b/scripts/coverity-model.c
@@ -106,12 +106,12 @@ static int get_keysym(const name2keysym_t *table,
 /* Replay data is considered trusted.  */
 uint8_t replay_get_byte(void)
 {
-     uint8_t byte = 0;
-     if (replay_file) {
-         uint8_t c;
-         byte = c;
-     }
-     return byte;
+    uint8_t byte = 0;
+    if (replay_file) {
+        uint8_t c;
+        byte = c;
+    }
+    return byte;
 }
 
 
-- 
2.17.1


Re: [Qemu-devel] [PATCH] coverity-model: Fix indentation messed up in commit 04a0afe5285
Posted by Philippe Mathieu-Daudé 5 years, 10 months ago
On 06/14/2018 10:22 AM, Markus Armbruster wrote:
> Signed-off-by: Markus Armbruster <armbru@redhat.com>

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> ---
>  scripts/coverity-model.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/scripts/coverity-model.c b/scripts/coverity-model.c
> index 48b112393b..2ec753db05 100644
> --- a/scripts/coverity-model.c
> +++ b/scripts/coverity-model.c
> @@ -106,12 +106,12 @@ static int get_keysym(const name2keysym_t *table,
>  /* Replay data is considered trusted.  */
>  uint8_t replay_get_byte(void)
>  {
> -     uint8_t byte = 0;
> -     if (replay_file) {
> -         uint8_t c;
> -         byte = c;
> -     }
> -     return byte;
> +    uint8_t byte = 0;
> +    if (replay_file) {
> +        uint8_t c;
> +        byte = c;
> +    }
> +    return byte;
>  }
>  
>  
>