Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141770
b: refs/heads/master
c: dfc7056
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 3, 2009
1 parent a9151b5 commit f78a4da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fdef36aca8a2900d3a5c113f6973d84cf38d7b7
refs/heads/master: dfc70567d76b9d506855fd5b334a4dd0ebdf1aa7
7 changes: 4 additions & 3 deletions trunk/drivers/staging/line6/audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit f78a4da

Please sign in to comment.