diff options
author | Robert P. J. Day <rpjday@crashcourse.ca> | 2010-08-10 21:03:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 11:59:23 -0400 |
commit | ad9c7ed0685406fe3cd7f0749b82bf433a39dd9c (patch) | |
tree | 82c4c11b94e10b71fc0796f6a4bfb9ed1e0115be /include/linux/kfifo.h | |
parent | ab654bab04be435a9671e0dcf49c18f9782dd838 (diff) |
kfifo: kfifo_is_{full,empty} should return bools, not ints
For consistency with other kfifo routines, return bool, not int.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Cc: Stefani Seibold <stefani@seibold.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/kfifo.h')
-rw-r--r-- | include/linux/kfifo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/kfifo.h b/include/linux/kfifo.h index 9fad0527344f..57c4eedf4dd6 100644 --- a/include/linux/kfifo.h +++ b/include/linux/kfifo.h | |||
@@ -171,7 +171,7 @@ static inline unsigned int kfifo_len(struct kfifo *fifo) | |||
171 | * kfifo_is_empty - returns true if the fifo is empty | 171 | * kfifo_is_empty - returns true if the fifo is empty |
172 | * @fifo: the fifo to be used. | 172 | * @fifo: the fifo to be used. |
173 | */ | 173 | */ |
174 | static inline __must_check int kfifo_is_empty(struct kfifo *fifo) | 174 | static inline __must_check bool kfifo_is_empty(struct kfifo *fifo) |
175 | { | 175 | { |
176 | return fifo->in == fifo->out; | 176 | return fifo->in == fifo->out; |
177 | } | 177 | } |
@@ -180,7 +180,7 @@ static inline __must_check int kfifo_is_empty(struct kfifo *fifo) | |||
180 | * kfifo_is_full - returns true if the fifo is full | 180 | * kfifo_is_full - returns true if the fifo is full |
181 | * @fifo: the fifo to be used. | 181 | * @fifo: the fifo to be used. |
182 | */ | 182 | */ |
183 | static inline __must_check int kfifo_is_full(struct kfifo *fifo) | 183 | static inline __must_check bool kfifo_is_full(struct kfifo *fifo) |
184 | { | 184 | { |
185 | return kfifo_len(fifo) == kfifo_size(fifo); | 185 | return kfifo_len(fifo) == kfifo_size(fifo); |
186 | } | 186 | } |