audio: Add spaces around operator/delete redundant spaces
authorZhang Han <zhanghan64@huawei.com>
Fri, 15 Jan 2021 01:24:26 +0000 (09:24 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 15 Jan 2021 10:49:26 +0000 (11:49 +0100)
Fix problems about spaces:
-operator needs spaces around it, add them.
-somespaces are redundant, remove them.

Signed-off-by: Zhang Han <zhanghan64@huawei.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20210115012431.79533-1-zhanghan64@huawei.com
Message-Id: <20210115012431.79533-3-zhanghan64@huawei.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio_template.h
audio/coreaudio.c
audio/dsoundaudio.c
audio/jackaudio.c

index f77210e404356705982fa50f7ad6dc60fbaafb27..f82593bb8db22fe6c94e1fdb4b8ff93f0b5d9441 100644 (file)
@@ -208,7 +208,7 @@ static void glue (audio_pcm_hw_gc_, TYPE) (HW **hwp)
         QLIST_REMOVE (hw, entries);
         glue (hw->pcm_ops->fini_, TYPE) (hw);
         glue (s->nb_hw_voices_, TYPE) += 1;
-        glue (audio_pcm_hw_free_resources_ ,TYPE) (hw);
+        glue (audio_pcm_hw_free_resources_ , TYPE) (hw);
         g_free (hw);
         *hwp = NULL;
     }
index 408b5871261c05f7dd8b345fccdada9a83cab0c4..6ca0d79c1f5e5916b5e3767760a56512a69351d9 100644 (file)
@@ -270,7 +270,7 @@ static void coreaudio_logstatus (OSStatus status)
 {
     const char *str = "BUG";
 
-    switch(status) {
+    switch (status) {
     case kAudioHardwareNoError:
         str = "kAudioHardwareNoError";
         break;
index e59bd83dc717f0c4eea7faec70e7083fc88ec1dd..21c2891772dedc4782dd0acd969feea10e59cea2 100644 (file)
@@ -133,7 +133,7 @@ static void dsound_log_hresult (HRESULT hr)
         break;
 #endif
 #ifdef DSERR_GENERIC
-    case DSERR_GENERIC :
+    case DSERR_GENERIC:
         str = "An undetermined error occurred inside the DirectSound subsystem";
         break;
 #endif
index f8afb5cc318c0578cd9d9174ad87eac8642f1f03..3031c4e29bd457252cb5284b572aec955630551c 100644 (file)
@@ -277,7 +277,7 @@ static int qjack_process(jack_nframes_t nframes, void *arg)
         if (likely(c->enabled)) {
             qjack_buffer_read_l(&c->fifo, buffers, nframes);
         } else {
-            for(int i = 0; i < c->nchannels; ++i) {
+            for (int i = 0; i < c->nchannels; ++i) {
                 memset(buffers[i], 0, nframes * sizeof(float));
             }
         }