From: Ben Gras Date: Fri, 22 Apr 2005 15:20:05 +0000 (+0000) Subject: bugfix.. r isn't an error in 'return r' X-Git-Tag: v3.1.0~908 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch11.html?a=commitdiff_plain;h=b4209a856d9b94b68504604a2d39f5ccae0047b2;p=minix.git bugfix.. r isn't an error in 'return r' --- diff --git a/servers/fs/super.c b/servers/fs/super.c index 6d3c2f3e3..26af83132 100644 --- a/servers/fs/super.c +++ b/servers/fs/super.c @@ -224,7 +224,7 @@ register struct super_block *sp; /* pointer to a superblock */ sbbuf, SUPER_BLOCK_BYTES, MIN_BLOCK_SIZE, 0); if(r != MIN_BLOCK_SIZE) { printf("dev_io failed for super block (%d)\n", r); - return r; + return EINVAL; } memcpy(sp, sbbuf, sizeof(*sp)); sp->s_dev = NO_DEV; /* restore later */