From: Benjamin Romer Date: Tue, 4 Nov 2014 16:25:25 +0000 (-0500) Subject: staging: unisys: refactor visorutil_mod_init() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2291b26874e41a68b036cd40d46501dc2ca9df02;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorutil/visorkmodutils.c b/drivers/staging/unisys/visorutil/visorkmodutils.c index 3ab990ba2054..556e2642d2d9 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