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

qeth: remove extraneous length from %pM format

Length specifier in the %pM format is not supported (at least, not
documented). Remove it, and also an extraneous '&' for the array.

Signed-off-by: Eugene Crosser <Eugene.Crosser@ru.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Eugene Crosser and committed by
David S. Miller
9846e70b 5dcd2461

+2 -2
+2 -2
drivers/s390/net/qeth_l2_main.c
··· 1452 1452 env[i] = str[i]; i++; 1453 1453 } 1454 1454 if (code & IPA_ADDR_CHANGE_CODE_MACADDR) { 1455 - snprintf(str[i], sizeof(str[i]), "MAC=%pM6", 1456 - &addr_lnid->mac); 1455 + snprintf(str[i], sizeof(str[i]), "MAC=%pM", 1456 + addr_lnid->mac); 1457 1457 env[i] = str[i]; i++; 1458 1458 } 1459 1459 snprintf(str[i], sizeof(str[i]), "NTOK_BUSID=%x.%x.%04x",