mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
367ef846bb
commit
750b54deb5
1 changed files with 1 additions and 7 deletions
|
|
@ -680,13 +680,7 @@ ATTRIBUTE_GROUPS(enclosure_component);
|
|||
|
||||
static int __init enclosure_init(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = class_register(&enclosure_class);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
return class_register(&enclosure_class);
|
||||
}
|
||||
|
||||
static void __exit enclosure_exit(void)
|
||||
|
|
|
|||
Loading…
Reference in a new issue