All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] check return code for request_region() in gus_wave.c
@ 2006-09-28 10:35 Hashem Masoud
  2006-09-28 10:40 ` Hashem Masoud
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Hashem Masoud @ 2006-09-28 10:35 UTC (permalink / raw)
  To: kernel-janitors

This is an attempt to handle return code of request_region() in 2 places 
in gus_wave.c

Tested by compiling using the option: make dir/ (is this OK?).

Signed-off-by: Hashem Masoud <masoudh@batelco.com.bh>

--- linux/sound/oss/gus_wave.c	2006-09-28 07:23:02.730614592 -0300
+++ linux-2.6.17.13/sound/oss/gus_wave.c	2006-09-27 19:03:42.000000000 -0300
@@ -2938,8 +2938,7 @@ void __init gus_wave_init(struct address
 			model_num = "3.7";
 			gus_type = 0x37;
 			mixer_type = ICS2101;
-			if (!request_region(u_MixSelect, 1, "GUS mixer"))
-				return;
+			request_region(u_MixSelect, 1, "GUS mixer");
 		}
 		else
 		{
@@ -3030,7 +3029,7 @@ void __init gus_wave_init(struct address
 	samples = (struct patch_info *)vmalloc((MAX_SAMPLE + 1) * sizeof(*samples));
 	if (samples = NULL)
 	{
-		printk(KERN_WARNING "gus_init: Cannot allocate memory for instrument tables\n");
+		printk(KERN_WARNING "gus_init: Cant allocate memory for instrument tables\n");
 		return;
 	}
 	conf_printf(tmp, hw_config);
@@ -3085,8 +3084,7 @@ void __init gus_wave_init(struct address
 		case ICS2101:
 			gus_mic_vol = gus_line_vol = gus_pcm_volume = 100;
 			gus_wave_volume = 90;
-			if (!request_region(u_MixSelect, 1, "GUS mixer"))
-				return;
+			request_region(u_MixSelect, 1, "GUS mixer");
 			hw_config->slots[5] = ics2101_mixer_init();
 			audio_devs[gus_devnum]->mixer_dev = hw_config->slots[5];	/* Next mixer# */
 			return;

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-09-29 18:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-28 10:35 [KJ] [PATCH] check return code for request_region() in gus_wave.c Hashem Masoud
2006-09-28 10:40 ` Hashem Masoud
2006-09-28 12:06 ` [KJ] [PATCH] check return code for request_region() Amol Lad
2006-09-28 23:44 ` [KJ] [PATCH] check return code for request_region() in gus_wave.c Hashem Masoud
2006-09-29  0:08 ` [KJ] [PATCH] check return code for request_region() in Jesper Juhl
2006-09-29 13:02 ` Hashem Masoud
2006-09-29 13:16 ` Jesper Juhl
2006-09-29 18:59 ` Hashem Masoud

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.