projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2e927b
)
phy: move from strlcpy with unused retval to strscpy
author
Wolfram Sang
<wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:00:56 +0000
(23:00 +0200)
committer
Vinod Koul
<vkoul@kernel.org>
Tue, 30 Aug 2022 07:42:38 +0000
(13:12 +0530)
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>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link:
https://lore.kernel.org/r/20220818210056.7205-1-wsa+renesas@sang-engineering.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/allwinner/phy-sun4i-usb.c
patch
|
blob
|
history
diff --git
a/drivers/phy/allwinner/phy-sun4i-usb.c
b/drivers/phy/allwinner/phy-sun4i-usb.c
index d5f3b42eb8ce69e2407cd9b9d863c51365ace970..3a3831f6059a3f5e9733902a16ad947f34697ed6 100644
(file)
--- a/
drivers/phy/allwinner/phy-sun4i-usb.c
+++ b/
drivers/phy/allwinner/phy-sun4i-usb.c
@@
-768,7
+768,7
@@
static int sun4i_usb_phy_probe(struct platform_device *pdev)
if (data->cfg->dedicated_clocks)
snprintf(name, sizeof(name), "usb%d_phy", i);
else
- str
l
cpy(name, "usb_phy", sizeof(name));
+ str
s
cpy(name, "usb_phy", sizeof(name));
phy->clk = devm_clk_get(dev, name);
if (IS_ERR(phy->clk)) {