summaryrefslogtreecommitdiff
path: root/backends/oss/oss-backend.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/oss/oss-backend.c
parent8138877b8f12881deec7e40aad9ebbf39e8826a8 (diff)
downloadlibmatemixer-004f668b29549a4b4c041f6d27b15898a9d7acc5.tar.bz2
libmatemixer-004f668b29549a4b4c041f6d27b15898a9d7acc5.tar.xz
Fix cppcheck [syntaxError] warnings
Diffstat (limited to 'backends/oss/oss-backend.c')
-rw-r--r--backends/oss/oss-backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/oss/oss-backend.c b/backends/oss/oss-backend.c
index 792367e..9dcfa19 100644
--- a/backends/oss/oss-backend.c
+++ b/backends/oss/oss-backend.c
@@ -358,7 +358,7 @@ read_device (OssBackend *oss, const gchar *path, gboolean *added)
close (fd);
- if G_LIKELY (device != NULL) {
+ if (G_LIKELY (device != NULL)) {
*added = oss_device_open (device);
if (*added == TRUE)
add_device (oss, device);
@@ -591,7 +591,7 @@ get_default_device (OssBackend *oss)
item = g_list_find_custom (oss->priv->devices,
oss->priv->default_device,
compare_device_path);
- if G_LIKELY (item != NULL)
+ if (G_LIKELY (item != NULL))
return OSS_DEVICE (item->data);
return NULL;