diff --git a/cpu/6502/net/ethernet.c b/cpu/6502/net/ethernet.c
index cb9c948a1..1b74aa6d8 100644
--- a/cpu/6502/net/ethernet.c
+++ b/cpu/6502/net/ethernet.c
@@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt
*
- * @(#)$Id: ethernet.c,v 1.1 2007/11/20 21:10:21 oliverschmidt Exp $
+ * @(#)$Id: ethernet.c,v 1.2 2007/11/22 11:41:18 oliverschmidt Exp $
*/
#include
@@ -74,7 +74,7 @@ ethernet_init(struct ethernet_config *config)
u8_t byte;
module_control.callerdata = open(config->name, O_RDONLY);
- if(module_control.callerdata == -1) {
+ if(module_control.callerdata < 0) {
fprintf(stderr, "%s: %s\n", config->name, strerror(errno));
error_exit();
}