diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:21 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-29 15:10:21 -0700 |
commit | 1e28459dd8e5af8a5fbb8d32bb65985b2b265599 (patch) | |
tree | f39ac19d107fe08084c7513bb8c7d7acc824386a /com32/gpllib/dmi | |
parent | a8d40e83bfe62fa71ed43048c10c64402b609d90 (diff) | |
download | syslinux-1e28459dd8e5af8a5fbb8d32bb65985b2b265599.tar.gz syslinux-1e28459dd8e5af8a5fbb8d32bb65985b2b265599.tar.xz syslinux-1e28459dd8e5af8a5fbb8d32bb65985b2b265599.zip |
Run Nindent on com32/gpllib/dmi/dmi_ipmi.c
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>
Diffstat (limited to 'com32/gpllib/dmi')
-rw-r--r-- | com32/gpllib/dmi/dmi_ipmi.c | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/com32/gpllib/dmi/dmi_ipmi.c b/com32/gpllib/dmi/dmi_ipmi.c index 8081375c..68a472ed 100644 --- a/com32/gpllib/dmi/dmi_ipmi.c +++ b/com32/gpllib/dmi/dmi_ipmi.c @@ -31,28 +31,25 @@ 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); + } } |