dyndbg: replace kstrdup() + strchr() with kstrdup_and_replace()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 13 Feb 2024 16:27:41 +0000 (18:27 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 6 Mar 2024 21:07:39 +0000 (13:07 -0800)
commit9bea6216f94bb711267e01f6ff8b07e3ff1e22d6
tree0115b395e57313ffd72406b3383cb9fac267b417
parent2932fb0a927d30690b8cb70c71d511fd9054bb61
dyndbg: replace kstrdup() + strchr() with kstrdup_and_replace()

Replace open coded functionalify of kstrdup_and_replace() with a call.

Link: https://lkml.kernel.org/r/20240213162741.3102810-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/dynamic_debug.c