mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
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:
parent
5d5251f7da
commit
516fe51505
@ -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;
|
||||
}
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user