bugfix.. r isn't an error in 'return r'

This commit is contained in:
Ben Gras 2005-04-22 15:20:05 +00:00
parent 7dc4989d96
commit b4209a856d

View file

@ -224,7 +224,7 @@ register struct super_block *sp; /* pointer to a superblock */
sbbuf, SUPER_BLOCK_BYTES, MIN_BLOCK_SIZE, 0); sbbuf, SUPER_BLOCK_BYTES, MIN_BLOCK_SIZE, 0);
if(r != MIN_BLOCK_SIZE) { if(r != MIN_BLOCK_SIZE) {
printf("dev_io failed for super block (%d)\n", r); printf("dev_io failed for super block (%d)\n", r);
return r; return EINVAL;
} }
memcpy(sp, sbbuf, sizeof(*sp)); memcpy(sp, sbbuf, sizeof(*sp));
sp->s_dev = NO_DEV; /* restore later */ sp->s_dev = NO_DEV; /* restore later */