summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorsascha <sascha@nomad.localdomain>2007-10-16 14:49:31 +0200
committersascha <sascha@nomad.localdomain>2007-10-16 14:49:31 +0200
commitfa814e8fae23377d1eb67f76b4e64656cf530e5a (patch)
tree56eb03f16a9f452a822ab544c563b1ad3e8d353d /drivers/net
parenta9c31fab862f6b55579dc6998955caa96b9f15bb (diff)
downloadbarebox-fa814e8fae23377d1eb67f76b4e64656cf530e5a.tar.gz
barebox-fa814e8fae23377d1eb67f76b4e64656cf530e5a.tar.xz
add default for case to avoid compiler warning
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/dm9000.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/dm9000.c b/drivers/net/dm9000.c
index aebc2ca6c7..6db36ad77e 100644
--- a/drivers/net/dm9000.c
+++ b/drivers/net/dm9000.c
@@ -309,7 +309,7 @@ static int dm9000_eth_send (struct eth_device *edev,
writel(((u32 *) data_ptr)[i], priv->iodata);
break;
default:
- /* This cannot happen, dm9000_probe() makes this sure */
+ /* dm9000_probe makes sure this cannot happen */
return -EINVAL;
}
@@ -392,6 +392,9 @@ static int dm9000_eth_rx (struct eth_device *edev)
for (i = 0; i < tmplen; i++)
((u32 *) rdptr)[i] = readl(priv->iodata);
break;
+ default:
+ /* dm9000_probe makes sure this cannot happen */
+ return -EINVAL;
}
if ((RxStatus & 0xbf00) || (RxLen < 0x40)