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

ipmi_powermgmt_clear - remove pointless if-else
Set clearType to 1 by default, so there is no need for if-else anymore.
This commit is contained in:
Zdenek Styblik 2013-07-07 12:05:11 +00:00
parent b4cb02a4d9
commit cd6b7039f0

View File

@ -2889,12 +2889,10 @@ ipmi_powermgmt_clear(struct ipmi_intf * intf, uint8_t clearValue)
{
struct ipmi_rs * rsp;
struct ipmi_rq req;
uint8_t clearType;
uint8_t clearType = 1;
uint8_t msg_data[3];
if (clearValue) {
clearType = 2;
} else {
clearType = 1;
}
/* clear powermanagement info*/
req.msg.netfn = DELL_OEM_NETFN;