staging/easycap: don't shadow rc variable from macros
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 3 Feb 2011 11:42:48 +0000 (13:42 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 4 Feb 2011 20:44:33 +0000 (12:44 -0800)
rc is used extensively in code as return code variable
so it is better not shadowing it in macros

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

index b282b0b06986fe678eca26bc2b4bba37392e2765..df0440d5d48f3eb66dd4c973dbc9eabb67c93d07 100644 (file)
@@ -596,19 +596,19 @@ struct signed_div_result {
  */
 /*---------------------------------------------------------------------------*/
 #define GET(X, Y, Z) do { \
-       int rc; \
+       int __rc; \
        *(Z) = (u16)0; \
-       rc = regget(X, Y, Z); \
-       if (0 > rc) { \
-               JOT(8, ":-(%i\n", __LINE__);  return(rc); \
+       __rc = regget(X, Y, Z); \
+       if (0 > __rc) { \
+               JOT(8, ":-(%i\n", __LINE__);  return __rc; \
        } \
 } while (0)
 
 #define SET(X, Y, Z) do { \
-       int rc; \
-       rc = regset(X, Y, Z); \
-       if (0 > rc) { \
-               JOT(8, ":-(%i\n", __LINE__);  return(rc); \
+       int __rc; \
+       __rc = regset(X, Y, Z); \
+       if (0 > __rc) { \
+               JOT(8, ":-(%i\n", __LINE__);  return __rc; \
        } \
 } while (0)
 /*---------------------------------------------------------------------------*/