[PATCH 14/13] swsusp mod needed parentheses

From: Hugh Dickins
Date: Sat Jul 09 2005 - 06:13:42 EST


Sorry, some parentheses around my SWP_WRITEOK check would help.

Signed-off-by: Hugh Dickins <hugh@xxxxxxxxxxx>

kernel/power/swsusp.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

--- swap13/kernel/power/swsusp.c 2005-07-08 19:15:59.000000000 +0100
+++ swap14/kernel/power/swsusp.c 2005-07-09 12:04:19.000000000 +0100
@@ -180,7 +180,7 @@ static int swsusp_swap_check(void) /* Th

spin_lock(&swap_lock);
for (i=0; i<MAX_SWAPFILES; i++) {
- if (!swap_info[i].flags & SWP_WRITEOK) {
+ if (!(swap_info[i].flags & SWP_WRITEOK)) {
swapfile_used[i]=SWAPFILE_UNUSED;
} else {
if (!len) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/