ethtool: fix drvinfo strings set in drivers
authorJiri Pirko <jiri@resnulli.us>
Sun, 6 Jan 2013 00:44:26 +0000 (00:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jan 2013 05:06:31 +0000 (21:06 -0800)
Use strlcpy where possible to ensure the string is \0 terminated.
Use always sizeof(string) instead of 32, ETHTOOL_BUSINFO_LEN
and custom defines.
Use snprintf instead of sprint.
Remove unnecessary inits of ->fw_version
Remove unnecessary inits of drvinfo struct.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found