From 004f668b29549a4b4c041f6d27b15898a9d7acc5 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Mon, 9 Dec 2019 12:05:16 +0100 Subject: Fix cppcheck [syntaxError] warnings --- backends/oss/oss-stream-control.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'backends/oss/oss-stream-control.c') diff --git a/backends/oss/oss-stream-control.c b/backends/oss/oss-stream-control.c index 6a78866..2e0b327 100644 --- a/backends/oss/oss-stream-control.c +++ b/backends/oss/oss-stream-control.c @@ -189,7 +189,7 @@ oss_stream_control_load (OssStreamControl *control) g_return_if_fail (OSS_IS_STREAM_CONTROL (control)); - if G_UNLIKELY (control->priv->fd == -1) + if (G_UNLIKELY (control->priv->fd == -1)) return; ret = ioctl (control->priv->fd, MIXER_READ (control->priv->devnum), &v); @@ -244,7 +244,7 @@ oss_stream_control_set_volume (MateMixerStreamControl *mmsc, guint volume) control = OSS_STREAM_CONTROL (mmsc); - if G_UNLIKELY (control->priv->fd == -1) + if (G_UNLIKELY (control->priv->fd == -1)) return FALSE; return write_and_store_volume (control, OSS_VOLUME_JOIN_SAME (CLAMP (volume, 0, 100))); @@ -281,7 +281,7 @@ oss_stream_control_set_channel_volume (MateMixerStreamControl *mmsc, control = OSS_STREAM_CONTROL (mmsc); - if G_UNLIKELY (control->priv->fd == -1) + if (G_UNLIKELY (control->priv->fd == -1)) return FALSE; if (channel != LEFT_CHANNEL && @@ -345,7 +345,7 @@ oss_stream_control_set_balance (MateMixerStreamControl *mmsc, gfloat balance) control = OSS_STREAM_CONTROL (mmsc); - if G_UNLIKELY (control->priv->fd == -1) + if (G_UNLIKELY (control->priv->fd == -1)) return FALSE; max = MAX (control->priv->volume[LEFT_CHANNEL], -- cgit v1.2.1