[PATCH 05/17] alsa: Fix boolean style (int->bool)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/modules/alsa/alsa-ucm.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/modules/alsa/alsa-ucm.c b/src/modules/alsa/alsa-ucm.c
index b1f1518..f4a6a84 100644
--- a/src/modules/alsa/alsa-ucm.c
+++ b/src/modules/alsa/alsa-ucm.c
@@ -792,7 +792,7 @@ static int ucm_port_contains(const char *port_name, const char *dev_name, bool i
     return ret;
 }
 
-static int ucm_check_conformance(
+static bool ucm_check_conformance(
         pa_alsa_ucm_mapping_context *context,
         pa_alsa_ucm_device **pdevices,
         int dev_num,
@@ -808,7 +808,7 @@ static int ucm_check_conformance(
             pa_proplist_gets(dev->proplist, PA_ALSA_PROP_UCM_NAME), dev_num);
     if (dev_num == 0) {
         pa_log_debug("First device in combination, number 1");
-        return 1;
+        return true;
     }
 
     if (dev->conflicting_devices) { /* the device defines conflicting devices */
@@ -816,7 +816,7 @@ static int ucm_check_conformance(
             for (i = 0; i < dev_num; i++) {
                 if (pdevices[i] == d) {
                     pa_log_debug("Conflicting device found");
-                    return 0;
+                    return false;
                 }
             }
         }
@@ -824,16 +824,16 @@ static int ucm_check_conformance(
         for (i = 0; i < dev_num; i++) {
             if (!ucm_device_exists(dev->supported_devices, pdevices[i])) {
                 pa_log_debug("Supported device not found");
-                return 0;
+                return false;
             }
         }
     } else { /* not support any other devices */
         pa_log_debug("Not support any other devices");
-        return 0;
+        return false;
     }
 
     pa_log_debug("Device added to combination, number %d", dev_num + 1);
-    return 1;
+    return true;
 }
 
 static inline pa_alsa_ucm_device *get_next_device(pa_idxset *idxset, uint32_t *idx) {
-- 
1.8.3.1



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux