aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/unisys
diff options
context:
space:
mode:
authorBenjamin Romer <benjamin.romer@unisys.com>2014-11-04 16:25:25 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-05 19:50:50 (GMT)
commit2291b26874e41a68b036cd40d46501dc2ca9df02 (patch)
tree5a293e66be5ef6c72533631003a7ac9fb85123ad /drivers/staging/unisys
parent670db786db99abb1b4d250c8a9609b59371ddc86 (diff)
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>
Diffstat (limited to 'drivers/staging/unisys')
-rw-r--r--drivers/staging/unisys/visorutil/visorkmodutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/unisys/visorutil/visorkmodutils.c b/drivers/staging/unisys/visorutil/visorkmodutils.c
index 3ab990b..556e264 100644
--- a/drivers/staging/unisys/visorutil/visorkmodutils.c
+++ b/drivers/staging/unisys/visorutil/visorkmodutils.c
@@ -51,14 +51,14 @@ static __init uint32_t visorutil_spar_detect(void)
}
}
-static __init int
-visorutil_mod_init(void)
+static __init int visorutil_mod_init(void)
{
if (visorutil_spar_detect()) {
unisys_spar_platform = TRUE;
return 0;
- } else
+ } else {
return -ENODEV;
+ }
}
static __exit void

Privacy Policy