staging/easycap: rename variable s16 to tmp
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 3 Feb 2011 11:42:46 +0000 (13:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 20:44:33 +0000 (12:44 -0800)
naming variable s16 is confusing since it is also a type name.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap_sound.c
drivers/staging/easycap/easycap_sound_oss.c

index f5c4645117a49892d44583d3bc4482cb1353cd11..e0fc188ae38afe02d6c9048265c799434f5b5745 100644 (file)
@@ -73,7 +73,7 @@ struct snd_pcm_runtime *prt;
 int dma_bytes, fragment_bytes;
 int isfragment;
 __u8 *p1, *p2;
-__s16 s16;
+__s16 tmp;
 int i, j, more, much, rc;
 #ifdef UPSAMPLE
 int k;
@@ -203,22 +203,22 @@ for (i = 0;  i < purb->number_of_packets; i++) {
 
                                                delta = (newaudio - oldaudio)
                                                                        / 4;
-                                               s16 = oldaudio + delta;
+                                               tmp = oldaudio + delta;
 
                                                for (k = 0;  k < 4;  k++) {
-                                                       *p2 = (0x00FF & s16);
+                                                       *p2 = (0x00FF & tmp);
                                                        *(p2 + 1) = (0xFF00 &
-                                                               s16) >> 8;
+                                                               tmp) >> 8;
                                                        p2 += 2;
-                                                       *p2 = (0x00FF & s16);
+                                                       *p2 = (0x00FF & tmp);
                                                        *(p2 + 1) = (0xFF00 &
-                                                               s16) >> 8;
+                                                               tmp) >> 8;
                                                        p2 += 2;
-                                                       s16 += delta;
+                                                       tmp += delta;
                                                }
                                                p1++;
                                                more--;
-                                               oldaudio = s16;
+                                               oldaudio = tmp;
                                        }
 #else /*!UPSAMPLE*/
                                        if (much > (2 * more))
@@ -227,11 +227,10 @@ for (i = 0;  i < purb->number_of_packets; i++) {
                                                peasycap->dma_fill);
 
                                        for (j = 0;  j < (much / 2);  j++) {
-                                               s16 =  ((int) *p1) - 128;
-                                               s16 = 128 *
-                                                               s16;
-                                               *p2 = (0x00FF & s16);
-                                               *(p2 + 1) = (0xFF00 & s16) >>
+                                               tmp = ((int) *p1) - 128;
+                                               tmp = 128 * tmp;
+                                               *p2 = (0x00FF & tmp);
+                                               *(p2 + 1) = (0xFF00 & tmp) >>
                                                                        8;
                                                p1++;  p2 += 2;
                                                more--;
index 2fccb4c62eac8a73e78d7958a7a20cb1bcedc89f..639257c0e669adec6758f248713808d26935a1ae 100644 (file)
@@ -54,7 +54,7 @@ easyoss_complete(struct urb *purb)
 struct easycap *peasycap;
 struct data_buffer *paudio_buffer;
 __u8 *p1, *p2;
-__s16 s16;
+__s16 tmp;
 int i, j, more, much, leap, rc;
 #ifdef UPSAMPLE
 int k;
@@ -235,23 +235,23 @@ for (i = 0;  i < purb->number_of_packets; i++) {
 
                                                delta = (newaudio - oldaudio)
                                                                        / 4;
-                                               s16 = oldaudio + delta;
+                                               tmp = oldaudio + delta;
 
                                                for (k = 0;  k < 4;  k++) {
-                                                       *p2 = (0x00FF & s16);
+                                                       *p2 = (0x00FF & tmp);
                                                        *(p2 + 1) = (0xFF00 &
-                                                               s16) >> 8;
+                                                               tmp) >> 8;
                                                        p2 += 2;
-                                                       *p2 = (0x00FF & s16);
+                                                       *p2 = (0x00FF & tmp);
                                                        *(p2 + 1) = (0xFF00 &
-                                                               s16) >> 8;
+                                                               tmp) >> 8;
                                                        p2 += 2;
 
-                                                       s16 += delta;
+                                                       tmp += delta;
                                                }
                                                p1++;
                                                more--;
-                                               oldaudio = s16;
+                                               oldaudio = tmp;
                                        }
 #else /*!UPSAMPLE*/
                                        if (much > (2 * more))
@@ -259,11 +259,11 @@ for (i = 0;  i < purb->number_of_packets; i++) {
                                        p2 = (__u8 *)paudio_buffer->pto;
 
                                        for (j = 0;  j < (much / 2);  j++) {
-                                               s16 =  ((int) *p1) - 128;
-                                               s16 = 128 *
-                                                               s16;
-                                               *p2 = (0x00FF & s16);
-                                               *(p2 + 1) = (0xFF00 & s16) >>
+                                               tmp =  ((int) *p1) - 128;
+                                               tmp = 128 *
+                                                               tmp;
+                                               *p2 = (0x00FF & tmp);
+                                               *(p2 + 1) = (0xFF00 & tmp) >>
                                                                        8;
                                                p1++;  p2 += 2;
                                                more--;