[PATCH 4/5] net dm9k: Fix compiler warning
Sascha Hauer
s.hauer at pengutronix.de
Mon Jan 2 08:57:13 EST 2012
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/net/dm9k.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/net/dm9k.c b/drivers/net/dm9k.c
index 40a7c67..983edd4 100644
--- a/drivers/net/dm9k.c
+++ b/drivers/net/dm9k.c
@@ -299,6 +299,8 @@ static unsigned dm9k_read_packet_status(int b_width, void __iomem *port, unsigne
case IORESOURCE_MEM_32BIT:
rc = dm9k_read_packet_status_32(port, status);
break;
+ default:
+ rc = -EINVAL;
}
return rc;
--
1.7.7.3
More information about the barebox
mailing list