Skip to contentSkip to conversation

sound/usb/usbaudio: Handle return value of usb_register()

PATCH Applied Tobias Klauser 2 participants 2 messages Oct 2, 2006 – Oct 4, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound/usb/usbaudio: Handle return value of usb_register()

Handle the return value of usb_register() in the module_init function.

---
 sound/usb/usbaudio.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
sound/usb/usbaudio.c +1 -2
index a42acf6..191c811 100644
@@ -3576,8 +3576,7 @@ static int __init snd_usb_audio_init(voi
 		printk(KERN_WARNING "invalid nrpacks value.\n");
 		return -EINVAL;
 	}
-	usb_register(&usb_audio_driver);
-	return 0;
+	return usb_register(&usb_audio_driver);
 }
 
 
Signature · 6 lines
1.4.2

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors
Applied
#1 lore raw

At Mon, 2 Oct 2006 12:52:59 +0200,

Quoted 4 lines · Tobias Klauser

Handle the return value of usb_register() in the module_init function.

Thanks, applied to ALSA tree now.

Takashi

Quoted 33 lines
---
 sound/usb/usbaudio.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
sound/usb/usbaudio.c +1 -2
index a42acf6..191c811 100644
@@ -3576,8 +3576,7 @@ static int __init snd_usb_audio_init(voi
 		printk(KERN_WARNING "invalid nrpacks value.\n");
 		return -EINVAL;
 	}
-	usb_register(&usb_audio_driver);
-	return 0;
+	return usb_register(&usb_audio_driver);
 }
 
 
Signature · 12 lines
1.4.2


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV