net: fec: replace snprintf() with strlcpy() in fec_ptp_init()
authorSergey Organov <sorganov@gmail.com>
Wed, 15 Jul 2020 15:43:00 +0000 (18:43 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Jul 2020 18:32:03 +0000 (11:32 -0700)
commit31bb1a560b2996f9953cfc232f6349d043aaab49
tree22e323bdd9a13987d359133b4c2ff5546068b43b
parent2b803088865e459beffa1d153ad59db72d1c726a
net: fec: replace snprintf() with strlcpy() in fec_ptp_init()

No need to use snprintf() on a constant string, nor using magic
constant in the fixed code was a good idea.

Signed-off-by: Sergey Organov <sorganov@gmail.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_ptp.c