kobject: Use return value of strreplace()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 5 Jun 2023 17:05:53 +0000 (20:05 +0300)
committerKees Cook <keescook@chromium.org>
Mon, 5 Jun 2023 22:31:12 +0000 (15:31 -0700)
commitb2f10148ec1eae7d63dd6a1a56afdf93a27daa74
tree59afb19b3127ae8d2f8dddd75d6a3c2de3c4c362
parentd01a77afd6bef1b3a2ed15e8ca6887ca7da0cddc
kobject: Use return value of strreplace()

Since strreplace() returns the pointer to the string itself,
we may use it directly in the code.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230605170553.7835-4-andriy.shevchenko@linux.intel.com
lib/kobject.c