[PATCH][2.6] Fix warning in iee1394 dma.c

From: Zwane Mwaikambo (zwane@arm.linux.org.uk)
Date: Wed Jul 16 2003 - 01:01:38 EST


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)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:23 EST