bgmac: allow bigger et_swtype nvram variable
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 15 Sep 2013 20:49:08 +0000 (22:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Sep 2013 01:30:59 +0000 (21:30 -0400)
commit3647268dedfe95945be05c9dde2bdbda7cfc6e91
tree2e3aad83509bf0d8275fa5b78d3e5f99ac5853e2
parent6a391e7bf26c04a6df5f77290e1146941d210d49
bgmac: allow bigger et_swtype nvram variable

Without this patch it is impossible to read et_swtype, because the 1
byte space is needed for the terminating null byte. The max expected
value is 0xF, so now it should be possible to read decimal form ("15")
and hex form ("0xF").

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac.c