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 <amcohen@xxxxxxxxxx> --- include/linux/idr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/idr.h b/include/linux/idr.h index a0dce14090a9..7834af491d46 100644 --- a/include/linux/idr.h +++ b/include/linux/idr.h @@ -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) { -- 2.31.1