2020-09-14 09:26:42

by liuqi (BA)

[permalink] [raw]
Subject: [PATCH] mm/madvise.c: Remove the unused variable in function madvise_inject_error

Variable zone is unused in function madvise_inject_error, let's remove it.

Signed-off-by: Qi Liu <[email protected]>
---
mm/madvise.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/mm/madvise.c b/mm/madvise.c
index 460e19d..94b9d17 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -879,7 +879,6 @@ static long madvise_remove(struct vm_area_struct *vma,
static int madvise_inject_error(int behavior,
unsigned long start, unsigned long end)
{
- struct zone *zone;
unsigned long size;

if (!capable(CAP_SYS_ADMIN))
--
2.8.1


2020-09-14 09:31:51

by Oscar Salvador

[permalink] [raw]
Subject: Re: [PATCH] mm/madvise.c: Remove the unused variable in function madvise_inject_error

On Mon, Sep 14, 2020 at 05:22:16PM +0800, Qi Liu wrote:
> Variable zone is unused in function madvise_inject_error, let's remove it.
>
> Signed-off-by: Qi Liu <[email protected]>

Andrew already fixed that up in my patch.

Thanks anyway

--
Oscar Salvador
SUSE L3