lkml.org 
[lkml]   [2005]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 14/13] swsusp mod needed parentheses
Sorry, some parentheses around my SWP_WRITEOK check would help.

Signed-off-by: Hugh Dickins <hugh@veritas.com>

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-07-09 13:15    [W:0.781 / U:0.336 seconds]
©2003-2014 Jasper Spaans. Advertise on this site