/* Returns 1 if the buffer is empty, 0 otherwise.  */
static int relay_buf_empty(struct rchan_buf *buf)
/* Returns 1 if the buffer is empty, 0 otherwise.  */
static int relay_buf_empty(struct rchan_buf *buf)
{
	return (buf->subbufs_produced - buf->subbufs_consumed) ? 0 : 1;
}