summaryrefslogtreecommitdiff
path: root/drivers/staging/easycap/easycap.h
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2011-02-03 13:42:48 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-04 12:44:33 -0800
commitf8cc1e9373c253902a219ec805977d3b4f16a86c (patch)
tree925e90299cc9cf3d57e3e75c43738d6db74dc899 /drivers/staging/easycap/easycap.h
parent055e3a3a2cdcb7d39d14857e2fb2175c11168ee7 (diff)
staging/easycap: don't shadow rc variable from macros
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>
Diffstat (limited to 'drivers/staging/easycap/easycap.h')
-rw-r--r--drivers/staging/easycap/easycap.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/easycap/easycap.h b/drivers/staging/easycap/easycap.h
index b282b0b06986..df0440d5d48f 100644
--- a/drivers/staging/easycap/easycap.h
+++ b/drivers/staging/easycap/easycap.h
@@ -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)
/*---------------------------------------------------------------------------*/