mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-01-22 06:12:19 +08:00
ID: 28 - 'lib/ipmi_delloem.c' - clean up the code
ipmi_lcd_set_single_line_text - invalid retval - Return (-1) on error as specified instead of 1.
This commit is contained in:
parent
b0294b96fd
commit
2302e83db5
@ -1242,7 +1242,7 @@ ipmi_lcd_set_single_line_text(struct ipmi_intf * intf, char * text)
|
||||
int rc = 0;
|
||||
if (bytes_to_store > IPMI_DELL_LCD_STRING_LENGTH_MAX) {
|
||||
lprintf(LOG_ERR, "Out of range Max limit is 62 characters");
|
||||
return 1;
|
||||
return (-1);
|
||||
} else {
|
||||
bytes_to_store = MIN(bytes_to_store, IPMI_DELL_LCD_STRING_LENGTH_MAX);
|
||||
for (ii = 0; ii < 4; ii++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user