scsi: Use _res and not res in MK_ERROR.

Some users of MK_ERROR pass in parameters from a variable called "res",
which is obviously not what they want to do, as that will use this "res"
and not theirs.

Spotted by Clang.
This commit is contained in:
Augustin Cavalier
2018-06-18 22:05:45 -04:00
parent b2f22ba09f
commit fe17f0df1f
+2 -2
View File
@@ -44,8 +44,8 @@ typedef struct err_res {
} err_res;
#define MK_ERROR( aaction, code ) ({ \
err_res res = {error_code: (code), action: (aaction) }; \
res; \
err_res _res = {error_code: (code), action: (aaction) }; \
_res; \
})
// cookie issued by driver to identify itself