idr: fix incorrect documentation of idr_is_empty()
PATCH 1/1 idr: fix incorrect documentation of idr_is_empty()
The function idr_is_empty() returns true in case that the IDR is empty, which means that there is no ID which is allocated from this IDR. Currently, the documentation is incorrect and describes the opposite situation. Fix it.
Signed-off-by Amit Cohen <[email protected]>
--- include/linux/idr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/idr.h +1 -1
@@ -155,7 +155,7 @@ static inline void idr_init(struct idr *idr)* idr_is_empty() - Are there any IDs allocated? * @idr: IDR handle. * -* Return: %true if any IDs have been allocated from this IDR. +* Return: %true if there is no ID which is allocated from this IDR. */ static inline bool idr_is_empty (const struct idr *idr) {
Signature · 1 line
2.31.1