diff options
author | ache <ache@FreeBSD.org> | 2001-08-26 10:28:58 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-08-26 10:28:58 +0000 |
commit | eb7b8850bf2d71f150825f79f3e8208c522ab70c (patch) | |
tree | 99d915f89d33f8d80eaba05802b6b764514c083e /sys/fs/smbfs | |
parent | c71ba5eea814604887301e431fe9ece3e45d0770 (diff) | |
download | FreeBSD-src-eb7b8850bf2d71f150825f79f3e8208c522ab70c.zip FreeBSD-src-eb7b8850bf2d71f150825f79f3e8208c522ab70c.tar.gz |
Cosmetique & style fixes from bde
Diffstat (limited to 'sys/fs/smbfs')
-rw-r--r-- | sys/fs/smbfs/smbfs_vnops.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/fs/smbfs/smbfs_vnops.c b/sys/fs/smbfs/smbfs_vnops.c index 3ca217f..6139351 100644 --- a/sys/fs/smbfs/smbfs_vnops.c +++ b/sys/fs/smbfs/smbfs_vnops.c @@ -977,7 +977,7 @@ smbfs_advlock(ap) struct proc *p = curproc; struct smb_cred scred; u_quad_t size; - off_t start, end; + off_t start, end, oadd; int error, lkop; if (vp->v_type == VDIR) { @@ -997,7 +997,6 @@ smbfs_advlock(ap) start = fl->l_start; break; case SEEK_END: - /* 'size' is always >= 0 */ if ((fl->l_start > 0 && size > OFF_MAX - fl->l_start) || (fl->l_start < 0 && size + fl->l_start > OFF_MAX)) return EOVERFLOW; @@ -1018,9 +1017,7 @@ smbfs_advlock(ap) } else if (fl->l_len == 0) end = -1; else { - off_t oadd = fl->l_len - 1; - - /* 'oadd' and 'start' are >= 0 */ + oadd = fl->l_len - 1; if (oadd > OFF_MAX - start) return EOVERFLOW; end = start + oadd; |