diff mbox

media: ddbridge: fix build warnings

Message ID 6e0fb4da-131f-893e-2e54-7936a265da7c@infradead.org (mailing list archive)
State New, archived
Headers show

Commit Message

Randy Dunlap Nov. 6, 2017, 6:21 p.m. UTC
From: Randy Dunlap <rdunlap@infradead.org>

Fix 2 build warnings.
These functions are void, so drop the "return"s.

./drivers/media/pci/ddbridge/ddbridge-io.h: warning: 'return' with a value, in function returning void [enabled by default]:  => 50:2, 55:2

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc:	Daniel Scheller <d.scheller.oss@gmail.com>
Cc:	Mauro Carvalho Chehab <mchehab@s-opensource.com>
Cc:	Mauro Carvalho Chehab <mchehab@kernel.org>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/media/pci/ddbridge/ddbridge-io.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

--- lnx-414-rc8.orig/drivers/media/pci/ddbridge/ddbridge-io.h
+++ lnx-414-rc8/drivers/media/pci/ddbridge/ddbridge-io.h
@@ -47,12 +47,12 @@  static inline void ddbwritel(struct ddb
 
 static inline void ddbcpyto(struct ddb *dev, u32 adr, void *src, long count)
 {
-	return memcpy_toio(dev->regs + adr, src, count);
+	memcpy_toio(dev->regs + adr, src, count);
 }
 
 static inline void ddbcpyfrom(struct ddb *dev, void *dst, u32 adr, long count)
 {
-	return memcpy_fromio(dst, dev->regs + adr, count);
+	memcpy_fromio(dst, dev->regs + adr, count);
 }
 
 static inline u32 safe_ddbreadl(struct ddb *dev, u32 adr)