mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
removed endianness check
This commit is contained in:
parent
6eaa2e8305
commit
22f0fc7c00
@ -456,16 +456,14 @@ ipmi_picmg_amc_portstate_get(struct ipmi_intf * intf,int device,int channel,
|
|||||||
unsigned char enabled;
|
unsigned char enabled;
|
||||||
d = (struct fru_picmgext_amc_link_info *)&(rsp->data[1 + (index*4)]);
|
d = (struct fru_picmgext_amc_link_info *)&(rsp->data[1 + (index*4)]);
|
||||||
|
|
||||||
#ifndef WORDS_BIGENDIAN
|
|
||||||
/* I don't know what kind of frug addict defined this record */
|
/* Removed endianness check here, probably not required
|
||||||
|
as we dont use bitfields */
|
||||||
port = d->linkInfo[0] & 0x0F;
|
port = d->linkInfo[0] & 0x0F;
|
||||||
type = ((d->linkInfo[0] & 0xF0) >> 4 )|(d->linkInfo[1] & 0x0F );
|
type = ((d->linkInfo[0] & 0xF0) >> 4 )|(d->linkInfo[1] & 0x0F );
|
||||||
ext = ((d->linkInfo[1] & 0xF0) >> 4 );
|
ext = ((d->linkInfo[1] & 0xF0) >> 4 );
|
||||||
grouping = d->linkInfo[2];
|
grouping = d->linkInfo[2];
|
||||||
|
|
||||||
#else
|
|
||||||
#error "FIXME"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
enabled = rsp->data[4 + (index*4) ];
|
enabled = rsp->data[4 + (index*4) ];
|
||||||
|
|
||||||
@ -809,7 +807,6 @@ ipmi_picmg_main (struct ipmi_intf * intf, int argc, char ** argv)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* portstate command */
|
/* portstate command */
|
||||||
else if (!strncmp(argv[0], "portstate", 9)) {
|
else if (!strncmp(argv[0], "portstate", 9)) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user