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
This commit is contained in:
parent
8b4a1ed0de
commit
ea4072446b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user