summaryrefslogtreecommitdiff
path: root/backends/alsa/alsa-toggle.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-12-09 12:05:16 +0100
committerlukefromdc <[email protected]>2019-12-10 18:39:02 +0000
commit004f668b29549a4b4c041f6d27b15898a9d7acc5 (patch)
tree35e5e5936f1089e427fc0156ed0a679f7c8de36b /backends/alsa/alsa-toggle.c
parent8138877b8f12881deec7e40aad9ebbf39e8826a8 (diff)
downloadlibmatemixer-004f668b29549a4b4c041f6d27b15898a9d7acc5.tar.bz2
libmatemixer-004f668b29549a4b4c041f6d27b15898a9d7acc5.tar.xz
Fix cppcheck [syntaxError] warnings
Diffstat (limited to 'backends/alsa/alsa-toggle.c')
-rw-r--r--backends/alsa/alsa-toggle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/alsa/alsa-toggle.c b/backends/alsa/alsa-toggle.c
index d7dd46e..9c15885 100644
--- a/backends/alsa/alsa-toggle.c
+++ b/backends/alsa/alsa-toggle.c
@@ -115,14 +115,14 @@ alsa_toggle_set_active_option (MateMixerSwitch *mms, MateMixerSwitchOption *mmso
toggle = ALSA_TOGGLE (mms);
- if G_UNLIKELY (toggle->priv->element == NULL)
+ if (G_UNLIKELY (toggle->priv->element == NULL))
return FALSE;
/* For toggles the 0/1 value is stored as the switch option id, there is not really
* a need to validate that the option belong to the switch, just make sure it
* contains the value 0 or 1 */
value = alsa_switch_option_get_id (ALSA_SWITCH_OPTION (mmso));
- if G_UNLIKELY (value != 0 && value != 1) {
+ if (G_UNLIKELY (value != 0 && value != 1)) {
g_warn_if_reached ();
return FALSE;
}
@@ -170,7 +170,7 @@ alsa_toggle_load (AlsaElement *element)
toggle = ALSA_TOGGLE (element);
- if G_UNLIKELY (toggle->priv->element == NULL)
+ if (G_UNLIKELY (toggle->priv->element == NULL))
return FALSE;
/* When reading the first time we try all the channels, otherwise only the