]> git.baikalelectronics.ru Git - kernel.git/commit
proc: cleanup: remove unused assignments
authorDan Carpenter <error27@gmail.com>
Wed, 26 May 2010 21:43:25 +0000 (14:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 May 2010 16:12:47 +0000 (09:12 -0700)
commit1d0718a0301640cc96b650cbad0b13583239f901
tree1df20844702dbf7d8d014ae08bdb479a8350533f
parent1bef1b839e24fcfc779f5ab9e6a9a41a34a492ce
proc: cleanup: remove unused assignments

I removed 3 unused assignments.  The first two get reset on the first
statement of their functions.  For "err" in root.c we don't return an
error and we don't use the variable again.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c
fs/proc/root.c