diff options
author | Pablo Barciela <[email protected]> | 2019-12-09 12:05:16 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-12-10 18:39:02 +0000 |
commit | 004f668b29549a4b4c041f6d27b15898a9d7acc5 (patch) | |
tree | 35e5e5936f1089e427fc0156ed0a679f7c8de36b /backends/alsa/alsa-switch.c | |
parent | 8138877b8f12881deec7e40aad9ebbf39e8826a8 (diff) | |
download | libmatemixer-004f668b29549a4b4c041f6d27b15898a9d7acc5.tar.bz2 libmatemixer-004f668b29549a4b4c041f6d27b15898a9d7acc5.tar.xz |
Fix cppcheck [syntaxError] warnings
Diffstat (limited to 'backends/alsa/alsa-switch.c')
-rw-r--r-- | backends/alsa/alsa-switch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/alsa/alsa-switch.c b/backends/alsa/alsa-switch.c index 1f5f92f..a1dfeea 100644 --- a/backends/alsa/alsa-switch.c +++ b/backends/alsa/alsa-switch.c @@ -136,12 +136,12 @@ alsa_switch_set_active_option (MateMixerSwitch *mms, MateMixerSwitchOption *mmso swtch = ALSA_SWITCH (mms); - if G_UNLIKELY (swtch->priv->element == NULL) + if (G_UNLIKELY (swtch->priv->element == NULL)) return FALSE; /* The channel mask is created when reading the active option the first * time, so a successful load must be done before changing the option */ - if G_UNLIKELY (swtch->priv->channel_mask == 0) { + if (G_UNLIKELY (swtch->priv->channel_mask == 0)) { g_debug ("Not setting active switch option, channel mask unknown"); return FALSE; } @@ -203,7 +203,7 @@ alsa_switch_load (AlsaElement *element) swtch = ALSA_SWITCH (element); - if G_UNLIKELY (swtch->priv->element == NULL) + if (G_UNLIKELY (swtch->priv->element == NULL)) return FALSE; /* When reading the first time we try all the channels, otherwise only the |