diff options
Diffstat (limited to 'kernel/power/swsusp.c')
-rw-r--r-- | kernel/power/swsusp.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/power/swsusp.c b/kernel/power/swsusp.c index c285fc5a2320..d82c1f7d0a60 100644 --- a/kernel/power/swsusp.c +++ b/kernel/power/swsusp.c | |||
@@ -1356,16 +1356,6 @@ int swsusp_check(void) | |||
1356 | { | 1356 | { |
1357 | int error; | 1357 | int error; |
1358 | 1358 | ||
1359 | if (!swsusp_resume_device) { | ||
1360 | if (!strlen(resume_file)) | ||
1361 | return -ENOENT; | ||
1362 | swsusp_resume_device = name_to_dev_t(resume_file); | ||
1363 | pr_debug("swsusp: Resume From Partition %s\n", resume_file); | ||
1364 | } else { | ||
1365 | pr_debug("swsusp: Resume From Partition %d:%d\n", | ||
1366 | MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device)); | ||
1367 | } | ||
1368 | |||
1369 | resume_bdev = open_by_devnum(swsusp_resume_device, FMODE_READ); | 1359 | resume_bdev = open_by_devnum(swsusp_resume_device, FMODE_READ); |
1370 | if (!IS_ERR(resume_bdev)) { | 1360 | if (!IS_ERR(resume_bdev)) { |
1371 | set_blocksize(resume_bdev, PAGE_SIZE); | 1361 | set_blocksize(resume_bdev, PAGE_SIZE); |