]> git.ipfire.org Git - thirdparty/linux.git/commit
pinctrl: cy8c95x0: Use 2-argument strscpy()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sun, 10 Nov 2024 20:59:41 +0000 (22:59 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 13 Nov 2024 13:18:06 +0000 (14:18 +0100)
commitb7e9fc3361c3f0836833dc2edba3dfef054a338a
tree172ce6eee321a74c29b2af361ed00943f3eb39d3
parenta53643fb30f84a9914a7b7205f4ff4c73fe6e7b6
pinctrl: cy8c95x0: Use 2-argument strscpy()

Use 2-argument strscpy(), which is not only shorter but also provides
an additional check that destination buffer is an array.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/20241110210040.18918-2-andy.shevchenko@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c