lib/idr.c: fix comment for idr_replace()
authorEric Biggers <ebiggers@google.com>
Tue, 3 Oct 2017 23:16:13 +0000 (16:16 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 4 Oct 2017 00:54:25 +0000 (17:54 -0700)
commita70e43a59de9316e6fbad3b65557d0a24c099aca
tree490e3618f5c40bd5900fe6a5a8eb15ab3f1f94b5
parentf80c7dab95a1f0f968acbafe4426ee9525b6f6ab
lib/idr.c: fix comment for idr_replace()

idr_replace() returns the old value on success, not 0.

Link: http://lkml.kernel.org/r/20170918162642.37511-1-ebiggers3@gmail.com
Signed-off-by: Eric Biggers <ebiggers@google.com>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/idr.c