]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
usb: mtu3: use boolean return value
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Mon, 17 Apr 2023 02:51:58 +0000 (10:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 09:17:05 +0000 (11:17 +0200)
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>
drivers/usb/mtu3/mtu3_qmu.c

index a4da1af0b2c0f836e3b3d8134a9b57dfbadfc901..6be4977a5db5ad5f36e695805f4d24ee3eaf7735 100644 (file)
@@ -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;