summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Dritschler <timo.dritschler@kit.edu>2015-03-30 17:21:17 +0200
committerTimo Dritschler <timo.dritschler@kit.edu>2015-03-30 17:21:17 +0200
commit0f4974458f3b10bf7f5939e3d7659b0f793e2347 (patch)
treee777911a34fe6e17bf4028221ed32af09681675d
parentc7a97c82fc10847c4e64b12d7e8dccd61ea6c0c4 (diff)
downloadkiro-0f4974458f3b10bf7f5939e3d7659b0f793e2347.tar.gz
kiro-0f4974458f3b10bf7f5939e3d7659b0f793e2347.tar.bz2
kiro-0f4974458f3b10bf7f5939e3d7659b0f793e2347.tar.xz
kiro-0f4974458f3b10bf7f5939e3d7659b0f793e2347.zip
Fixed an issue in kiro_sb_push and kiro_sb_push_dma
-rw-r--r--src/kiro-sb.c4
1 files 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);
}