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:
Zdenek Styblik 2013-07-07 11:58:13 +00:00
parent b0294b96fd
commit 2302e83db5

View File

@ -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++) {