diff options
author | kib <kib@FreeBSD.org> | 2012-03-04 14:51:42 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2012-03-04 14:51:42 +0000 |
commit | 8428e3fd0fec9634c1934f86271531c6383a17fe (patch) | |
tree | fc7768f67545b7090a6c510e2a5a291a272d113a /sys/fs/cd9660 | |
parent | bb4b86d0ab9a9ef56906ea47e3111a404c3094cf (diff) | |
download | FreeBSD-src-8428e3fd0fec9634c1934f86271531c6383a17fe.zip FreeBSD-src-8428e3fd0fec9634c1934f86271531c6383a17fe.tar.gz |
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
Diffstat (limited to 'sys/fs/cd9660')
-rw-r--r-- | sys/fs/cd9660/cd9660_vnops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c index 9a6ecc2..ab59640 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); |