From 0f4974458f3b10bf7f5939e3d7659b0f793e2347 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Mon, 30 Mar 2015 17:21:17 +0200 Subject: Fixed an issue in kiro_sb_push and kiro_sb_push_dma --- src/kiro-sb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kiro-sb.c b/src/kiro-sb.c index 624ead2..f6e9e6f 100644 --- a/src/kiro-sb.c +++ b/src/kiro-sb.c @@ -304,7 +304,7 @@ kiro_sb_push (KiroSb *self, void *data_in) g_return_val_if_fail (self != NULL, FALSE); KiroSbPrivate *priv = KIRO_SB_GET_PRIVATE (self); - g_return_val_if_fail (priv->initialized != 1, FALSE); + g_return_val_if_fail (priv->initialized == 1, FALSE); return kiro_trb_push (priv->trb, data_in); } @@ -316,7 +316,7 @@ kiro_sb_push_dma (KiroSb *self) g_return_val_if_fail (self != NULL, FALSE); KiroSbPrivate *priv = KIRO_SB_GET_PRIVATE (self); - g_return_val_if_fail (priv->initialized != 1, FALSE); + g_return_val_if_fail (priv->initialized == 1, FALSE); return kiro_trb_dma_push (priv->trb); } -- cgit v1.2.3