staging: unisys: refactor visorutil_mod_init()
Fix the function name declaration so it is just one line, and add the missing brackets to the else clause in the if statement. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
670db786db
commit
2291b26874
1 changed files with 3 additions and 3 deletions
|
@ -51,14 +51,14 @@ static __init uint32_t visorutil_spar_detect(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static __init int
|
static __init int visorutil_mod_init(void)
|
||||||
visorutil_mod_init(void)
|
|
||||||
{
|
{
|
||||||
if (visorutil_spar_detect()) {
|
if (visorutil_spar_detect()) {
|
||||||
unisys_spar_platform = TRUE;
|
unisys_spar_platform = TRUE;
|
||||||
return 0;
|
return 0;
|
||||||
} else
|
} else {
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static __exit void
|
static __exit void
|
||||||
|
|
Loading…
Add table
Reference in a new issue