misc: enclosure: Remove unnecessary error check
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 29 Nov 2017 13:08:32 +0000 (18:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Dec 2017 17:45:31 +0000 (18:45 +0100)
commit750b54deb569369f8cd808c9f7afd1348bde96ed
treef67eb8206914496035cab07ad67e450e8053fd11
parent367ef846bbcaafb9aa4ae95552942134064e99f5
misc: enclosure: Remove unnecessary error check

It is not necessary to check return value of class_register.
enclosure_init returns both successful and error value.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/enclosure.c