From: Jiri Pirko Date: Sun, 6 Jan 2013 00:44:26 +0000 (+0000) Subject: ethtool: fix drvinfo strings set in drivers X-Git-Tag: v3.9-rc1~139^2~450 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7826d43f2db45c9305a6e0ba165650e1a203f517;p=pandora-kernel.git ethtool: fix drvinfo strings set in drivers 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed