ipmi: Fix strcpy source and destination the same
authorCorey Minyard <corey@minyard.net>
Sat, 14 Jun 2025 00:06:26 +0000 (19:06 -0500)
committerCorey Minyard <corey@minyard.net>
Sat, 14 Jun 2025 00:06:26 +0000 (19:06 -0500)
commit8ffcb7560b4a15faf821df95e3ab532b2b020f8c
tree6c87ad2fcf1a37a252cc4053f312e07dd45ecb54
parentcd2e103d57e5615f9bb027d772f93b9efd567224
ipmi: Fix strcpy source and destination the same

The source and destination of some strcpy operations was the same.
Split out the part of the operations that needed to be done for those
particular calls so the unnecessary copy wasn't done.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202506140756.EFXXvIP4-lkp@intel.com/
Signed-off-by: Corey Minyard <corey@minyard.net>
drivers/char/ipmi/ipmi_watchdog.c