From be36cefeca40ad6b31233859662a23937d6f35ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Simon=20Sandstr=C3=B6m?= Date: Tue, 7 Feb 2017 12:02:06 +0100 Subject: [PATCH] staging: bcm2835-audio: Simplify bcm2835_alsa_device_init() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes checkpatch warning "Missing a blank line after declarations". Signed-off-by: Simon Sandström Signed-off-by: Greg Kroah-Hartman --- drivers/staging/bcm2835-audio/bcm2835.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audio/bcm2835.c index e94dda297d8e..f1ea1e082142 100644 --- a/drivers/staging/bcm2835-audio/bcm2835.c +++ b/drivers/staging/bcm2835-audio/bcm2835.c @@ -228,14 +228,13 @@ static struct platform_driver bcm2835_alsa0_driver = { static int bcm2835_alsa_device_init(void) { - int err; - err = platform_driver_register(&bcm2835_alsa0_driver); - if (err) { - pr_err("Error registering bcm2835_alsa0_driver %d .\n", err); - return err; - } + int retval; - return 0; + retval = platform_driver_register(&bcm2835_alsa0_driver); + if (retval) + pr_err("Error registering bcm2835_alsa0_driver %d .\n", retval); + + return retval; } static void bcm2835_alsa_device_exit(void) -- 2.20.1