mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
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:
parent
b4cb02a4d9
commit
cd6b7039f0
@ -2889,12 +2889,10 @@ ipmi_powermgmt_clear(struct ipmi_intf * intf, uint8_t clearValue)
|
|||||||
{
|
{
|
||||||
struct ipmi_rs * rsp;
|
struct ipmi_rs * rsp;
|
||||||
struct ipmi_rq req;
|
struct ipmi_rq req;
|
||||||
uint8_t clearType;
|
uint8_t clearType = 1;
|
||||||
uint8_t msg_data[3];
|
uint8_t msg_data[3];
|
||||||
if (clearValue) {
|
if (clearValue) {
|
||||||
clearType = 2;
|
clearType = 2;
|
||||||
} else {
|
|
||||||
clearType = 1;
|
|
||||||
}
|
}
|
||||||
/* clear powermanagement info*/
|
/* clear powermanagement info*/
|
||||||
req.msg.netfn = DELL_OEM_NETFN;
|
req.msg.netfn = DELL_OEM_NETFN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user