]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
drivers/net: fix sparse warning: returning void-valued expression
authorHannes Eder <hannes@hanneseder.net>
Fri, 26 Dec 2008 07:56:04 +0000 (23:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Dec 2008 07:56:04 +0000 (23:56 -0800)
Fix this sparse warning:

  drivers/net/niu.c:8850:2: warning: returning void-valued expression

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c

index 5698c155bbf3ffa473891ad15f448fd2db00e899..0c0b752315cae844c6944b912d8605032070e93c 100644 (file)
@@ -8906,7 +8906,7 @@ static u64 niu_pci_map_page(struct device *dev, struct page *page,
 static void niu_pci_unmap_page(struct device *dev, u64 dma_address,
                               size_t size, enum dma_data_direction direction)
 {
-       return dma_unmap_page(dev, dma_address, size, direction);
+       dma_unmap_page(dev, dma_address, size, direction);
 }
 
 static u64 niu_pci_map_single(struct device *dev, void *cpu_addr,