Fixed use of rounddown_pow_of_two in ramoops
PATCH 1/1 Fixed use of rounddown_pow_of_two in ramoops
From: Marco Stornelli <[email protected]>
The return value of rounddown_pow_of_two wasn't evaluated, so the operation was a no-op.
Signed-off-by Marco Stornelli <[email protected]>
--- drivers/char/ramoops.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/char/ramoops.c +2 -2
@@ -126,8 +126,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 &&
Quoted 6 lines · Marco Stornelli
From: Marco Stornelli <[email protected]>
The return value of
rounddown_pow_of_twowasn't evaluated, so the operation was a no-op.Signed-off-by Marco Stornelli <[email protected]>
Reviewed-by WANG Cong <[email protected]>
Quoted 15 lines · On Sat, 19 Nov 2011 14:32:15 +0100 Marco Stornelli <[email protected]>…
From: Marco Stornelli <[email protected]>
The return value of
rounddown_pow_of_twowasn't evaluated, so the operation was a no-op.Signed-off-by Marco Stornelli <[email protected]>--- drivers/char/ramoops.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/char/ramoops.c +0
-0
drivers/char/ramoops.c static int __init ramoops_probe(struct platform_device *pdev) · line 133
Quoted 10 lines
drivers/char/ramoops.c +2
-2@@ -126,8 +126,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 &&
waah.
Reported-by Andrew Morton <[email protected]>
There goes my chance to get my name in the kernel tree :(