Hannes Eder schrieb:
Fix the following build warning, by eliminating the variable.
kernel/auditsc.c: In function 'audit_match_perm':
kernel/auditsc.c:249: warning: ISO C90 forbids mixed declarations and code
Signed-off-by: Hannes Eder <hannes@xxxxxxxxxxxxxx>
---
walter harms <wharms@xxxxxx> wrote:
maybe you can do a s/n/ctx->major/g ?
removing the need for the whole variable ?!
Here we go. Why is this better than splitting the variable declaration and
initialization, as in the previous patch?
Hi hannes,
removing the variable removes the problem for ever. The Variable itself is used as
"shortcut" to ctx->major whar is useful in larger codes to get a better overview (sometimes).
In this case the code is short, so there is no advantage in keeping.
re,
wh
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html