From: Hannes Eder Date: Fri, 26 Dec 2008 07:56:04 +0000 (-0800) Subject: drivers/net: fix sparse warning: returning void-valued expression X-Git-Tag: v2.6.29-rc1~581^2~53 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a08b32df1417146b1a4c43e641ec1177da51896c;p=linux-2.6-omap-h63xx.git drivers/net: fix sparse warning: returning void-valued expression Fix this sparse warning: drivers/net/niu.c:8850:2: warning: returning void-valued expression Signed-off-by: Hannes Eder Signed-off-by: David S. Miller --- diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 5698c155bbf..0c0b752315c 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c @@ -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,