staging: bcm2835-audio: Simplify bcm2835_alsa_device_init()
authorSimon Sandström <simon@nikanor.nu>
Tue, 7 Feb 2017 11:02:06 +0000 (12:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2017 12:14:30 +0000 (13:14 +0100)
Fixes checkpatch warning "Missing a blank line after declarations".

Signed-off-by: Simon Sandström <simon@nikanor.nu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm2835-audio/bcm2835.c

index e94dda297d8e06fd4671f3faa10f659adf5d5bac..f1ea1e08214268eb299cb39f4e6ecc27e9db028a 100644 (file)
@@ -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)