Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: most: hdm-dim2: remove tracing of mac address

This patch removes tracing of the MAC address from the DIM2 HDM as it is
already done in the networking AIM.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andrey Shvetsov and committed by
Greg Kroah-Hartman
02245b60 f28e6cd3

+1 -4
+1 -4
drivers/staging/most/hdm-dim2/dim2_hdm.c
··· 306 306 static void retrieve_netinfo(struct dim2_hdm *dev, struct mbo *mbo) 307 307 { 308 308 u8 *data = mbo->virt_address; 309 - u8 *mac = dev->mac_addrs; 310 309 311 310 pr_info("Node Address: 0x%03x\n", (u16)data[16] << 8 | data[17]); 312 311 dev->link_state = data[18]; 313 312 pr_info("NIState: %d\n", dev->link_state); 314 - memcpy(mac, data + 19, 6); 315 - pr_info("MAC address: %02X:%02X:%02X:%02X:%02X:%02X\n", 316 - mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); 313 + memcpy(dev->mac_addrs, data + 19, 6); 317 314 dev->deliver_netinfo++; 318 315 wake_up_interruptible(&dev->netinfo_waitq); 319 316 }