From: Nikanth Karthikesan Date: Wed, 15 Apr 2009 05:07:04 +0000 (+0530) Subject: swap: Remove code handling bio_alloc failure with __GFP_WAIT X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=297dbf50d7ab0539cf9cf7f2a66918665a18e45e;p=linux-beck.git swap: Remove code handling bio_alloc failure with __GFP_WAIT Remove code handling bio_alloc failure with __GFP_WAIT. Signed-off-by: Nikanth Karthikesan Signed-off-by: Jens Axboe --- diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 505f319e489c..8ba052c86d48 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -64,8 +64,6 @@ static int submit(int rw, pgoff_t page_off, struct page *page, struct bio *bio; bio = bio_alloc(__GFP_WAIT | __GFP_HIGH, 1); - if (!bio) - return -ENOMEM; bio->bi_sector = page_off * (PAGE_SIZE >> 9); bio->bi_bdev = resume_bdev; bio->bi_end_io = end_swap_bio_read;