lkml.org 
[lkml]   [2023]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v1 0/3] lib/string_helpers et al.: Change return value of strreplace()
Date
It's more convenient to have strreplace() to return the original
pointer. This will help users to make their code better.

The patch 1 kills the only user of the returned value of strreplace(),
Patch 2 converts the return value of strreplace(). And patch 3 shows
how it may be useful.That said, the series can be routed via fs tree,
with or without the last patch.

Andy Shevchenko (3):
jbd2: Avoid printing out the boundary
lib/string_helpers: Change returned value of the strreplace()
kobject: Use return value of strreplace()

fs/jbd2/journal.c | 5 ++---
include/linux/string.h | 2 +-
lib/kobject.c | 3 +--
lib/string_helpers.c | 10 +++++++---
4 files changed, 11 insertions(+), 9 deletions(-)

--
2.40.0.1.gaa8946217a0b

\
 
 \ /
  Last update: 2023-03-27 01:12    [W:0.055 / U:1.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site