OSDN Git Service

wifi: mac80211: move from strlcpy with unused retval to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:02:23 +0000 (23:02 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 26 Aug 2022 07:57:51 +0000 (09:57 +0200)
commit28b904ec486b59297a92e34b1e92837907d0f529
tree6a283a1e41739530d0ec4d54a2545f77b81b28f8
parent83888346c57a422591004a715877bc5745978b6c
wifi: mac80211: move from strlcpy with unused retval to strscpy

Follow the advice of the below link and prefer 'strscpy' in this
subsystem. Conversion is 1:1 because the return value is not used.
Generated by a coccinelle script.

Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c