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:
Doug Torrance 2014-10-09 23:50:17 -05:00 committed by Carlos R. Mafra
parent b938743e0f
commit 917d454f0d

View file

@ -49,8 +49,8 @@ void mem_init(void)
/* new format ? (kernel >= 2.5.1pre?) */ /* new format ? (kernel >= 2.5.1pre?) */
/* see linux/fs/proc/proc_misc.c */ /* see linux/fs/proc/proc_misc.c */
if (version == 2 && patchlevel >= 5 && sublevel >= 1 || \ if ((version == 2 && patchlevel >= 5 && sublevel >= 1) || \
version == 2 && patchlevel >= 6 && sublevel >= 0 || \ (version == 2 && patchlevel >= 6 && sublevel >= 0) || \
version >2 ) version >2 )
isnewformat = 1; isnewformat = 1;
} }