From: Marco Stornelli Date: Fri, 13 Jan 2012 01:20:58 +0000 (-0800) Subject: ramoops: fix use of rounddown_pow_of_two() X-Git-Tag: v3.3-rc1~81^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdb5950754eb3dedb9fea7c8828d3e51d9dbc3f7;p=profile%2Fcommon%2Fkernel-common.git ramoops: fix use of rounddown_pow_of_two() The return value of rounddown_pow_of_two wasn't evaluated, so the operation was a no-op. Signed-off-by: Marco Stornelli Reported-by: Andrew Morton Reviewed-by: WANG Cong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c index feda90c..9c152ab 100644 --- a/drivers/char/ramoops.c +++ b/drivers/char/ramoops.c @@ -125,8 +125,8 @@ static int __init ramoops_probe(struct platform_device *pdev) goto fail3; } - rounddown_pow_of_two(pdata->mem_size); - rounddown_pow_of_two(pdata->record_size); + pdata->mem_size = rounddown_pow_of_two(pdata->mem_size); + pdata->record_size = rounddown_pow_of_two(pdata->record_size); /* Check for the minimum memory size */ if (pdata->mem_size < MIN_MEM_SIZE &&