[PATCH] media: ddbridge: fix build warnings

From: Randy Dunlap
Date: Mon Nov 06 2017 - 13:21:22 EST


From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>

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@xxxxxxxxxxxxx>
Cc: Daniel Scheller <d.scheller.oss@xxxxxxxxx>
Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx>
Cc: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
Reported-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
---
drivers/media/pci/ddbridge/ddbridge-io.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- 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)