linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][2.6] Fix warning in iee1394 dma.c
@ 2003-07-16  6:01 Zwane Mwaikambo
  0 siblings, 0 replies; only message in thread
From: Zwane Mwaikambo @ 2003-07-16  6:01 UTC (permalink / raw)
  To: Linux Kernel; +Cc: bcollins

I also removed the panic, the BUG should shaft things bad enough.

drivers/ieee1394/dma.c: In function `dma_region_find':
drivers/ieee1394/dma.c:161: warning: control reaches end of non-void function

Index: linux-2.5/drivers/ieee1394/dma.c
===================================================================
RCS file: /home/cvs/linux-2.5/drivers/ieee1394/dma.c,v
retrieving revision 1.5
diff -u -p -B -r1.5 dma.c
--- linux-2.5/drivers/ieee1394/dma.c	27 Jun 2003 04:49:52 -0000	1.5
+++ linux-2.5/drivers/ieee1394/dma.c	16 Jul 2003 03:46:10 -0000
@@ -157,7 +157,9 @@ static inline int dma_region_find(struct
 		off -= sg_dma_len(&dma->sglist[i]);
 	}
 
-	panic("dma_region_find: offset %lu beyond end of DMA mapping\n", offset);
+	printk("dma_region_find: offset %lu beyond end of DMA mapping\n", offset);
+	BUG();
+	return -ENOENT;
 }
 
 dma_addr_t dma_region_offset_to_bus(struct dma_region *dma, unsigned long offset)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-16  5:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-16  6:01 [PATCH][2.6] Fix warning in iee1394 dma.c Zwane Mwaikambo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).