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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user