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 /include/net/devlink.h | |
| parent | nfp: ethtool: supplement nfp link modes supported (diff) | |
| download | linux-fa2f921f3bf1ed98956ad341b920a55aab69bc35.tar.gz linux-fa2f921f3bf1ed98956ad341b920a55aab69bc35.zip | |
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 'include/net/devlink.h')
0 files changed, 0 insertions, 0 deletions
