diff options
author | pfg <pfg@FreeBSD.org> | 2016-02-07 03:48:40 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-02-07 03:48:40 +0000 |
commit | 29ef016884d212b509f8947c5112cc7da1c0b6c7 (patch) | |
tree | b5fdc869772e1db5f03dd26aa1340917aa5402f8 /sys/fs | |
parent | 0bbadbe82bfe904f4b7d74ea8805c36bcd91a919 (diff) | |
download | FreeBSD-src-29ef016884d212b509f8947c5112cc7da1c0b6c7.zip FreeBSD-src-29ef016884d212b509f8947c5112cc7da1c0b6c7.tar.gz |
cd9660: Drop an unnecessary check for NULL.
This was unnecessary and also confused Coverity.
Confirmed on: NetBSD
CID: 978558
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/cd9660/cd9660_vfsops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c index a1f8780..983b869 100644 --- a/sys/fs/cd9660/cd9660_vfsops.c +++ b/sys/fs/cd9660/cd9660_vfsops.c @@ -741,8 +741,7 @@ cd9660_vget_internal(mp, ino, flags, vpp, relocated, isodir) if (off + isonum_711(isodir->length) > imp->logical_block_size) { vput(vp); - if (bp != 0) - brelse(bp); + brelse(bp); printf("fhtovp: directory crosses block boundary %d[off=%d/len=%d]\n", off +isonum_711(isodir->length), off, isonum_711(isodir->length)); |