Commit dfc70567 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Staging: line6: fix checkpatch errors in audio.c

Lots of warnings also fixed up.

Cc: Markus Grabner <grabner@icg.tugraz.at>
Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0fdef36a
...@@ -25,12 +25,12 @@ static char *line6_id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; ...@@ -25,12 +25,12 @@ static char *line6_id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
*/ */
int line6_init_audio(struct usb_line6 *line6) int line6_init_audio(struct usb_line6 *line6)
{ {
static int dev = 0; static int dev;
struct snd_card *card; struct snd_card *card;
card = snd_card_new(line6_index[dev], line6_id[dev], THIS_MODULE, 0); card = snd_card_new(line6_index[dev], line6_id[dev], THIS_MODULE, 0);
if(card == NULL) if (card == NULL)
return -ENOMEM; return -ENOMEM;
line6->card = card; line6->card = card;
...@@ -49,7 +49,8 @@ int line6_register_audio(struct usb_line6 *line6) ...@@ -49,7 +49,8 @@ int line6_register_audio(struct usb_line6 *line6)
{ {
int err; int err;
if((err = snd_card_register(line6->card)) < 0) err = snd_card_register(line6->card);
if (err < 0)
return err; return err;
return 0; return 0;
......
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