From: Simon Sandström Date: Tue, 7 Feb 2017 11:02:06 +0000 (+0100) Subject: staging: bcm2835-audio: Simplify bcm2835_alsa_device_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=be36cefeca40ad6b31233859662a23937d6f35ee;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: bcm2835-audio: Simplify bcm2835_alsa_device_init() Fixes checkpatch warning "Missing a blank line after declarations". Signed-off-by: Simon Sandström Signed-off-by: Greg Kroah-Hartman --- 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)