aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware')
-rw-r--r--drivers/firmware/iscsi_ibft.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/firmware/iscsi_ibft.c b/drivers/firmware/iscsi_ibft.c
index f82bcdae130b..a3600e3ed0fa 100644
--- a/drivers/firmware/iscsi_ibft.c
+++ b/drivers/firmware/iscsi_ibft.c
@@ -380,7 +380,6 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry,
380 struct ibft_nic *nic = entry->nic; 380 struct ibft_nic *nic = entry->nic;
381 void *ibft_loc = entry->header; 381 void *ibft_loc = entry->header;
382 char *str = buf; 382 char *str = buf;
383 char *mac;
384 __be32 val; 383 __be32 val;
385 384
386 if (!nic) 385 if (!nic)
@@ -419,10 +418,7 @@ static ssize_t ibft_attr_show_nic(struct ibft_kobject *entry,
419 str += sprintf(str, "%d\n", nic->vlan); 418 str += sprintf(str, "%d\n", nic->vlan);
420 break; 419 break;
421 case ibft_eth_mac: 420 case ibft_eth_mac:
422 mac = nic->mac; 421 str += sprintf(str, "%pM\n", nic->mac);
423 str += sprintf(str, "%02x:%02x:%02x:%02x:%02x:%02x\n",
424 (u8)mac[0], (u8)mac[1], (u8)mac[2],
425 (u8)mac[3], (u8)mac[4], (u8)mac[5]);
426 break; 422 break;
427 case ibft_eth_hostname: 423 case ibft_eth_hostname:
428 str += sprintf_string(str, nic->hostname_len, 424 str += sprintf_string(str, nic->hostname_len,