summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2007-12-07 22:32:09 +0000
committerscottl <scottl@FreeBSD.org>2007-12-07 22:32:09 +0000
commit38b1bc6f6ba9805311850f502a0eb6c0a478566f (patch)
tree93c81ba61e8e90e3ee022afdfd6988efae6d84b4 /sys
parenta738f66c0565ffc53e02b9f6f281ad7d8ab3e435 (diff)
downloadFreeBSD-src-38b1bc6f6ba9805311850f502a0eb6c0a478566f.zip
FreeBSD-src-38b1bc6f6ba9805311850f502a0eb6c0a478566f.tar.gz
Don't expect a return value from statfs_scale_blocks().
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index 1eb5155..5cee623 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -150,9 +150,7 @@ copy_statfs(struct statfs *in, struct statfs32 *out)
{
int error;
- error = statfs_scale_blocks(in, INT32_MAX);
- if (error)
- return (error);
+ statfs_scale_blocks(in, INT32_MAX);
bzero(out, sizeof(*out));
CP(*in, *out, f_bsize);
out->f_iosize = MIN(in->f_iosize, INT32_MAX);
OpenPOWER on IntegriCloud