[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <X+HUmERYPLyM+oz5@kroah.com>
Date: Tue, 22 Dec 2020 12:12:24 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Alexandru Ardelean <alexandru.ardelean@...log.com>
Cc: linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
jic23@...nel.org, lars@...afoo.de, akpm@...ux-foundation.org,
andy.shevchenko@...il.com
Subject: Re: [PATCH v5 1/2] lib/string.c: add
__sysfs_match_string_with_gaps() helper
On Tue, Dec 22, 2020 at 11:52:09AM +0200, Alexandru Ardelean wrote:
> The original docstring of the __sysfs_match_string() and match_string()
> helper, implied that -1 could be used to search through NULL terminated
> arrays, and positive 'n' can be used to go through arrays that may have
> NULL elements in the middle of the array.
>
> This isn't true. Regardless of the value of 'n', the first NULL element in
> the array.
I can not parse this last sentence, is it missing something?
thanks,
greg k-h
Powered by blists - more mailing lists