Selaa lähdekoodia

CODING_STYLE: indent example code as all others

All the example code are indented with four spaces except this one.

Fix this by adding four spaces here.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <2019030407.27567-3-richardw.yang@linux.intel.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
tags/v4.1.0-rc0
Wei Yang 4 kuukautta sitten
vanhempi
commit
25d68ffb6b
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4
    4
      CODING_STYLE

+ 4
- 4
CODING_STYLE Näytä tiedosto

@@ -147,10 +147,10 @@ block to a separate function altogether.
147 147
 When comparing a variable for (in)equality with a constant, list the
148 148
 constant on the right, as in:
149 149
 
150
-if (a == 1) {
151
-    /* Reads like: "If a equals 1" */
152
-    do_something();
153
-}
150
+    if (a == 1) {
151
+        /* Reads like: "If a equals 1" */
152
+        do_something();
153
+    }
154 154
 
155 155
 Rationale: Yoda conditions (as in 'if (1 == a)') are awkward to read.
156 156
 Besides, good compilers already warn users when '==' is mis-typed as '=',

Loading…
Peruuta
Tallenna