patch-2.1.81 linux/drivers/sound/soundcard.c

Next file: linux/fs/dcache.c
Previous file: linux/drivers/sound/gus_wave.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.80/linux/drivers/sound/soundcard.c linux/drivers/sound/soundcard.c
@@ -1101,8 +1101,7 @@
 
 		dmap->buffsize = PAGE_SIZE * (1 << sz);
 
-		start_addr = (char *) __get_free_pages(GFP_ATOMIC | GFP_DMA, sz);
-		if (start_addr == NULL)
+		if ((start_addr = (char *) __get_free_pages(GFP_ATOMIC|GFP_DMA, sz)) == NULL)
 			dmap->buffsize /= 2;
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov