aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/line6
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-02-27 22:41:54 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:26 -0700
commitdfc70567d76b9d506855fd5b334a4dd0ebdf1aa7 (patch)
tree7f2a4bea9cbcec17e040d32f04238f0c7f71899e /drivers/staging/line6
parent0fdef36aca8a2900d3a5c113f6973d84cf38d7b7 (diff)
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: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/line6')
-rw-r--r--drivers/staging/line6/audio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/staging/line6/audio.c b/drivers/staging/line6/audio.c
index 37f759a7615..3aa946899ce 100644
--- a/drivers/staging/line6/audio.c
+++ b/drivers/staging/line6/audio.c
@@ -25,12 +25,12 @@ static char *line6_id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
*/
int line6_init_audio(struct usb_line6 *line6)
{
- static int dev = 0;
+ static int dev;
struct snd_card *card;
card = snd_card_new(line6_index[dev], line6_id[dev], THIS_MODULE, 0);
- if(card == NULL)
+ if (card == NULL)
return -ENOMEM;
line6->card = card;
@@ -49,7 +49,8 @@ int line6_register_audio(struct usb_line6 *line6)
{
int err;
- if((err = snd_card_register(line6->card)) < 0)
+ err = snd_card_register(line6->card);
+ if (err < 0)
return err;
return 0;