Commit be36cefe authored by Simon Sandström's avatar Simon Sandström Committed by Greg Kroah-Hartman

staging: bcm2835-audio: Simplify bcm2835_alsa_device_init()

Fixes checkpatch warning "Missing a blank line after declarations".
Signed-off-by: default avatarSimon Sandström <simon@nikanor.nu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 99f36b18
...@@ -228,14 +228,13 @@ static struct platform_driver bcm2835_alsa0_driver = { ...@@ -228,14 +228,13 @@ static struct platform_driver bcm2835_alsa0_driver = {
static int bcm2835_alsa_device_init(void) static int bcm2835_alsa_device_init(void)
{ {
int err; int retval;
err = platform_driver_register(&bcm2835_alsa0_driver);
if (err) {
pr_err("Error registering bcm2835_alsa0_driver %d .\n", err);
return err;
}
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) static void bcm2835_alsa_device_exit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment