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>
*/
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;
{
int err;
- if((err = snd_card_register(line6->card)) < 0)
+ err = snd_card_register(line6->card);
+ if (err < 0)
return err;
return 0;