kfifo: kfifo_is_{full,empty} should return bools, not ints
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / linux / kfifo.h
index 9fad0527344fb1203bd8bdace4a77fc9045301b4..57c4eedf4dd6ff39d16c1d2cc2c37c5b24505740 100644 (file)
@@ -171,7 +171,7 @@ static inline unsigned int kfifo_len(struct kfifo *fifo)
  * kfifo_is_empty - returns true if the fifo is empty
  * @fifo: the fifo to be used.
  */
-static inline __must_check int kfifo_is_empty(struct kfifo *fifo)
+static inline __must_check bool kfifo_is_empty(struct kfifo *fifo)
 {
        return fifo->in == fifo->out;
 }
@@ -180,7 +180,7 @@ static inline __must_check int kfifo_is_empty(struct kfifo *fifo)
  * kfifo_is_full - returns true if the fifo is full
  * @fifo: the fifo to be used.
  */
-static inline __must_check int kfifo_is_full(struct kfifo *fifo)
+static inline __must_check bool kfifo_is_full(struct kfifo *fifo)
 {
        return kfifo_len(fifo) == kfifo_size(fifo);
 }