ID: 28 - 'lib/ipmi_delloem.c' - clean up the code

ipmi_lcd_get_info_wh - simplify - Remove pointless ``if () { } else { }'' and
return immediately on error.
This commit is contained in:
Zdenek Styblik 2013-07-07 11:49:19 +00:00
parent 5d5251f7da
commit 516fe51505

View File

@ -886,7 +886,7 @@ ipmi_lcd_get_info_wh(struct ipmi_intf * intf)
printf("LCD info\n");
if (ipmi_lcd_get_configure_command_wh (intf) != 0) {
return -1;
} else {
}
if (lcd_mode.lcdmode== IPMI_DELL_LCD_CONFIG_DEFAULT) {
char text[IPMI_DELL_LCD_STRING_LENGTH_MAX+1] = {0};
if (ipmi_lcd_get_platform_model_name(intf, text,
@ -953,7 +953,6 @@ ipmi_lcd_get_info_wh(struct ipmi_intf * intf)
} else if (lcd_mode.error_display == IPMI_DELL_LCD_ERROR_DISP_VERBOSE) {
printf(" Error Display: Simple\n");
}
}
return 0;
}
/*