aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power/swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/power/swap.c')
-rw-r--r--kernel/power/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index c2bcf97d24c8..d7f6c1a288d3 100644
--- a/kernel/power/swap.c
+++ b/kernel/power/swap.c
@@ -923,7 +923,7 @@ int swsusp_write(unsigned int flags)
923 } 923 }
924 memset(&snapshot, 0, sizeof(struct snapshot_handle)); 924 memset(&snapshot, 0, sizeof(struct snapshot_handle));
925 error = snapshot_read_next(&snapshot); 925 error = snapshot_read_next(&snapshot);
926 if (error < PAGE_SIZE) { 926 if (error < (int)PAGE_SIZE) {
927 if (error >= 0) 927 if (error >= 0)
928 error = -EFAULT; 928 error = -EFAULT;
929 929
@@ -1483,7 +1483,7 @@ int swsusp_read(unsigned int *flags_p)
1483 1483
1484 memset(&snapshot, 0, sizeof(struct snapshot_handle)); 1484 memset(&snapshot, 0, sizeof(struct snapshot_handle));
1485 error = snapshot_write_next(&snapshot); 1485 error = snapshot_write_next(&snapshot);
1486 if (error < PAGE_SIZE) 1486 if (error < (int)PAGE_SIZE)
1487 return error < 0 ? error : -EFAULT; 1487 return error < 0 ? error : -EFAULT;
1488 header = (struct swsusp_info *)data_of(snapshot); 1488 header = (struct swsusp_info *)data_of(snapshot);
1489 error = get_swap_reader(&handle, flags_p); 1489 error = get_swap_reader(&handle, flags_p);