aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/kfifo.h4
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 */
174static inline __must_check int kfifo_is_empty(struct kfifo *fifo) 174static 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 */
183static inline __must_check int kfifo_is_full(struct kfifo *fifo) 183static 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}