usb: mtu3: use boolean return value
Prefer to use boolean value due to gpd_ring_empty() return true or false. See "16) Function return values and names" in coding-style.rst Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Link: https://lore.kernel.org/r/20230417025203.18097-2-chunfeng.yun@mediatek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c507565aac
commit
3481769cd0
|
@ -221,7 +221,7 @@ static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
|
|||
}
|
||||
|
||||
/* check if a ring is emtpy */
|
||||
static int gpd_ring_empty(struct mtu3_gpd_ring *ring)
|
||||
static bool gpd_ring_empty(struct mtu3_gpd_ring *ring)
|
||||
{
|
||||
struct qmu_gpd *enq = ring->enqueue;
|
||||
struct qmu_gpd *next;
|
||||
|
|
Loading…
Reference in New Issue