1 Dec 2009 03:34
[Patch] fs: remove a useless BUG()
Amerigo Wang <amwang <at> redhat.com>
2009-12-01 02:34:14 GMT
2009-12-01 02:34:14 GMT
This BUG() is suspicious, it makes its following statements unreachable, and it seems to be useless, since the caller of this function already handles the failure properly. Remove it. Signed-off-by: WANG Cong <amwang <at> redhat.com> Cc: Alexander Viro <viro <at> zeniv.linux.org.uk> Cc: Jens Axboe <jens.axboe <at> oracle.com> Cc: Nick Piggin <npiggin <at> suse.de> Cc: "Theodore Ts'o" <tytso <at> mit.edu> --- diff --git a/fs/buffer.c b/fs/buffer.c index 6fa5302..ac111d7 100644 --- a/fs/buffer.c +++ b/fs/buffer.c <at> <at> -1041,7 +1041,6 <at> <at> grow_dev_page(struct block_device *bdev, sector_t block, return page; failed: - BUG(); unlock_page(page); page_cache_release(page); return NULL; -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo <at> vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html(Continue reading)
RSS Feed