ixgbe: don't use magic size number to assign ptp_caps.name
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 26 Feb 2014 01:58:54 +0000 (17:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Feb 2014 20:54:51 +0000 (15:54 -0500)
commitca324099fb2feff62cd0d3e8ef007e2c2dc8b6a7
tree7d0173126c073bc0c3c13b0a8cf4baf750bda7eb
parentd773ce2de1c670e0d259870a2ea8fd9f60ab98cd
ixgbe: don't use magic size number to assign ptp_caps.name

Rather than using a magic size number, just use sizeof since that will
work and is more robust to future changes.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c