ID: 306 - "fru print" command prints the FRU #0 twice

This patch make the command to spit FRU info #0 only once.

Commit for Dmitry Bazhenov
This commit is contained in:
Zdenek Styblik 2014-05-25 08:52:07 +02:00
parent 3f508629a5
commit 3b15a7c0e2

View File

@ -3111,7 +3111,8 @@ ipmi_fru_print_all(struct ipmi_intf * intf)
mc = (struct sdr_record_mc_locator *) mc = (struct sdr_record_mc_locator *)
ipmi_sdr_get_record(intf, header, itr); ipmi_sdr_get_record(intf, header, itr);
/* Does this MC device support FRU inventory device? */ /* Does this MC device support FRU inventory device? */
if (mc && (mc->dev_support & 0x08)) { /* FRU inventory device? */ if (mc && (mc->dev_support & 0x08) && /* FRU inventory device? */
intf->target_addr != mc->dev_slave_addr) {
/* Yes. Prepare to issue FRU commands to FRU device #0 LUN 0 */ /* Yes. Prepare to issue FRU commands to FRU device #0 LUN 0 */
/* using the slave address specified in the MC record. */ /* using the slave address specified in the MC record. */