aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2012-03-04 14:51:42 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2012-03-04 14:51:42 +0000
commitea4072446b2b622a268a161e36c60ff4b2b76419 (patch)
treefc7768f67545b7090a6c510e2a5a291a272d113a /sys/fs
parent8b4a1ed0dec86c4d1610db51c14883c2f5a04cee (diff)
downloadsrc-ea4072446b2b622a268a161e36c60ff4b2b76419.tar.gz
src-ea4072446b2b622a268a161e36c60ff4b2b76419.zip
Remove unneeded cast to u_int. The values as small enough to fit into
int, beside the use of MIN macro which performs type promotions. Submitted by: bde MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=232493
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/cd9660/cd9660_vnops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c
index 9a6ecc2288f3..ab596406a8e2 100644
--- a/sys/fs/cd9660/cd9660_vnops.c
+++ b/sys/fs/cd9660/cd9660_vnops.c
@@ -318,8 +318,7 @@ cd9660_read(ap)
do {
lbn = lblkno(imp, uio->uio_offset);
on = blkoff(imp, uio->uio_offset);
- n = MIN((u_int)(imp->logical_block_size - on),
- uio->uio_resid);
+ n = MIN(imp->logical_block_size - on, uio->uio_resid);
diff = (off_t)ip->i_size - uio->uio_offset;
if (diff <= 0)
return (0);