* [PATCH] mm/madvise.c: Remove the unused variable in function madvise_inject_error
@ 2020-09-14 9:22 Qi Liu
2020-09-14 9:28 ` Oscar Salvador
0 siblings, 1 reply; 2+ messages in thread
From: Qi Liu @ 2020-09-14 9:22 UTC (permalink / raw)
To: akpm, christian; +Cc: linux-mm, linux-kernel, linuxarm
Variable zone is unused in function madvise_inject_error, let's remove it.
Signed-off-by: Qi Liu <liuqi115@huawei.com>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] mm/madvise.c: Remove the unused variable in function madvise_inject_error
2020-09-14 9:22 [PATCH] mm/madvise.c: Remove the unused variable in function madvise_inject_error Qi Liu
@ 2020-09-14 9:28 ` Oscar Salvador
0 siblings, 0 replies; 2+ messages in thread
From: Oscar Salvador @ 2020-09-14 9:28 UTC (permalink / raw)
To: Qi Liu; +Cc: akpm, christian, linux-mm, linux-kernel, linuxarm
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 <liuqi115@huawei.com>
Andrew already fixed that up in my patch.
Thanks anyway
--
Oscar Salvador
SUSE L3
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-14 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-14 9:22 [PATCH] mm/madvise.c: Remove the unused variable in function madvise_inject_error Qi Liu
2020-09-14 9:28 ` Oscar Salvador
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox