lkml.org 
[lkml]   [2013]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 06/11] sysctl: remove unnecessary variable initialization
Date
From: Andi Kleen <ak@linux.intel.com>

In this if () branch first is not needed, so no need to set it.

Fixes a set-but-not-used warning.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
kernel/sysctl.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index b2f06f3..7f82d6d 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -2549,7 +2549,6 @@ int proc_do_large_bitmap(struct ctl_table *table, int write,
}

bitmap_set(tmp_bitmap, val_a, val_b - val_a + 1);
- first = 0;
proc_skip_char(&kbuf, &left, '\n');
}
free_page(page);
--
1.8.3.1


\
 
 \ /
  Last update: 2013-09-30 23:01    [W:0.580 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site