wmmemload: Add suggested parentheses.
Avoid the following compiler warning: mem_linux.c: In function ‘mem_init’: mem_linux.c:52:40: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \ ^
This commit is contained in:
parent
b938743e0f
commit
917d454f0d
|
@ -49,8 +49,8 @@ void mem_init(void)
|
|||
|
||||
/* new format ? (kernel >= 2.5.1pre?) */
|
||||
/* see linux/fs/proc/proc_misc.c */
|
||||
if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \
|
||||
version == 2 && patchlevel >= 6 && sublevel >= 0 || \
|
||||
if ((version == 2 && patchlevel >= 5 && sublevel >= 1) || \
|
||||
(version == 2 && patchlevel >= 6 && sublevel >= 0) || \
|
||||
version >2 )
|
||||
isnewformat = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue