Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: ddbridge: fix build warnings

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>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Daniel Scheller <d.scheller.oss@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Randy Dunlap and committed by
Mauro Carvalho Chehab
f3eff209 fe365285

+2 -2
+2 -2
drivers/media/pci/ddbridge/ddbridge-io.h
··· 47 47 48 48 static inline void ddbcpyto(struct ddb *dev, u32 adr, void *src, long count) 49 49 { 50 - return memcpy_toio(dev->regs + adr, src, count); 50 + memcpy_toio(dev->regs + adr, src, count); 51 51 } 52 52 53 53 static inline void ddbcpyfrom(struct ddb *dev, void *dst, u32 adr, long count) 54 54 { 55 - return memcpy_fromio(dst, dev->regs + adr, count); 55 + memcpy_fromio(dst, dev->regs + adr, count); 56 56 } 57 57 58 58 static inline u32 safe_ddbreadl(struct ddb *dev, u32 adr)