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>
This commit is contained in:
parent
055e3a3a2c
commit
f8cc1e9373
1 changed files with 8 additions and 8 deletions
|
@ -596,19 +596,19 @@ struct signed_div_result {
|
||||||
*/
|
*/
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define GET(X, Y, Z) do { \
|
#define GET(X, Y, Z) do { \
|
||||||
int rc; \
|
int __rc; \
|
||||||
*(Z) = (u16)0; \
|
*(Z) = (u16)0; \
|
||||||
rc = regget(X, Y, Z); \
|
__rc = regget(X, Y, Z); \
|
||||||
if (0 > rc) { \
|
if (0 > __rc) { \
|
||||||
JOT(8, ":-(%i\n", __LINE__); return(rc); \
|
JOT(8, ":-(%i\n", __LINE__); return __rc; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define SET(X, Y, Z) do { \
|
#define SET(X, Y, Z) do { \
|
||||||
int rc; \
|
int __rc; \
|
||||||
rc = regset(X, Y, Z); \
|
__rc = regset(X, Y, Z); \
|
||||||
if (0 > rc) { \
|
if (0 > __rc) { \
|
||||||
JOT(8, ":-(%i\n", __LINE__); return(rc); \
|
JOT(8, ":-(%i\n", __LINE__); return __rc; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue