]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PM: hibernate: Remove size arguments when calling strscpy()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 18 Mar 2025 08:07:55 +0000 (09:07 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Apr 2025 18:11:46 +0000 (20:11 +0200)
commitcfdb7520f901a9696e1dc825b0a8ed9c664d58aa
tree2b72135191a74ba9b6c17ee9f41e3504a6012173
parent0af2f6be1b4281385b618cb86ad946eded089ac8
PM: hibernate: Remove size arguments when calling strscpy()

The size parameter is optional and strscpy() automatically determines
the length of the destination buffer using sizeof() if the argument is
omitted. This makes the explicit sizeof() calls unnecessary. Remove
them to shorten and simplify the code.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250318080755.61126-2-thorsten.blum@linux.dev
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c