xen-netback: use true and false for boolean values

Return statements in functions returning bool should use true or false
instead of an integer value.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <[email protected]>
Acked-by: Wei Liu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Gustavo A. R. Silva authored and David S. Miller committed 2018-08-02 14:43:04 -07:00
1 parent bd34389d4f
commit d3e2a25bcd
1 file changed
+2 -2
+2 -2
View File
@@ -1603,9 +1603,9 @@ static void xenvif_ctrl_action(struct xenvif *vif)
static bool xenvif_ctrl_work_todo(struct xenvif *vif)
{
if (likely(RING_HAS_UNCONSUMED_REQUESTS(&vif->ctrl)))
return 1;
return true;
return 0;
return false;
}
irqreturn_t xenvif_ctrl_irq_fn(int irq, void *data)