char: misc: fix error path
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Mon, 13 Jul 2015 12:02:28 +0000 (17:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jul 2015 17:30:47 +0000 (10:30 -0700)
Lets call remove_proc_entry() in the error path only if we have
successfully created "misc" in procfs.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/misc.c

Simple merge