Run Nindent on com32/gpllib/dmi/dmi_ipmi.c
authorH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:21 +0000 (15:10 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 29 May 2009 22:10:21 +0000 (15:10 -0700)
Automatically reformat com32/gpllib/dmi/dmi_ipmi.c using Nindent.

Do this for all files except HDT, gPXE and externally maintained
libraries (zlib, tinyjpeg, libpng).

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/gpllib/dmi/dmi_ipmi.c

index 8081375..68a472e 100644 (file)
 
 const char *dmi_ipmi_interface_type(uint8_t code)
 {
-        /* 3.3.39.1 and IPMI 2.0, appendix C1, table C1-2 */
-        static const char *type[] = {
-                "Unknown", /* 0x00 */
-                "KCS (Keyboard Control Style)",
-                "SMIC (Server Management Interface Chip)",
-                "BT (Block Transfer)",
-                "SSIF (SMBus System Interface)" /* 0x04 */
-        };
+    /* 3.3.39.1 and IPMI 2.0, appendix C1, table C1-2 */
+    static const char *type[] = {
+       "Unknown",              /* 0x00 */
+       "KCS (Keyboard Control Style)",
+       "SMIC (Server Management Interface Chip)",
+       "BT (Block Transfer)",
+       "SSIF (SMBus System Interface)" /* 0x04 */
+    };
 
-        if (code <= 0x04)
-                return type[code];
-        return out_of_spec;
+    if (code <= 0x04)
+       return type[code];
+    return out_of_spec;
 }
 
-void dmi_ipmi_base_address(uint8_t type, const uint8_t *p, s_ipmi *ipmi)
+void dmi_ipmi_base_address(uint8_t type, const uint8_t * p, s_ipmi * ipmi)
 {
-        if (type == 0x04) /* SSIF */
-        {
-                ipmi->base_address= (*p) >> 1;
-        }
-        else
-        {
-                ipmi->base_address = QWORD(p);
-        }
+    if (type == 0x04) {                /* SSIF */
+       ipmi->base_address = (*p) >> 1;
+    } else {
+       ipmi->base_address = QWORD(p);
+    }
 }