summaryrefslogtreecommitdiffstats
path: root/drivers/char/ramoops.c
diff options
context:
space:
mode:
authorMarco Stornelli <marco.stornelli@gmail.com>2012-01-13 02:20:58 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-13 05:13:13 +0100
commitfdb5950754eb3dedb9fea7c8828d3e51d9dbc3f7 (patch)
tree57d9804de982ab233c2fe2c553466a12387e1866 /drivers/char/ramoops.c
parentc/r: prctl: add PR_SET_MM codes to set up mm_struct entries (diff)
downloadlinux-fdb5950754eb3dedb9fea7c8828d3e51d9dbc3f7.tar.xz
linux-fdb5950754eb3dedb9fea7c8828d3e51d9dbc3f7.zip
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 <marco.stornelli@gmail.com> Reported-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/char/ramoops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c
index feda90cdac9f..9c152ab2bfa7 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 &&