diff options
author | Jiri Pirko <jiri@nvidia.com> | 2023-02-10 11:01:25 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-02-13 09:49:14 +0000 |
commit | fa2f921f3bf1ed98956ad341b920a55aab69bc35 (patch) | |
tree | cf9aafcbb3c177bd5a3d80452a02b30efc1a6972 /net/devlink/core.c | |
parent | 170677fee45baa955b3f7c1f41e6031d1d1e2272 (diff) |
devlink: don't use strcpy() to copy param value
No need to treat string params any different comparing to other types.
Rely on the struct assign to copy the whole struct, including the
string.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/devlink/core.c')
0 files changed, 0 insertions, 0 deletions