fs misc: for pointers replace 0 with NULL.

Mostly cosmetical, no functional change.

Found with devel/coccinelle.
This commit is contained in:
Pedro F. Giffuni 2016-04-15 17:28:24 +00:00
parent 9f915a92c7
commit 0d3e502f92
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298074
4 changed files with 7 additions and 7 deletions

View File

@ -709,7 +709,7 @@ cd9660_vget_internal(mp, ino, flags, vpp, relocated, isodir)
if (error || *vpp != NULL)
return (error);
if (isodir == 0) {
if (isodir == NULL) {
int lbn, off;
lbn = lblkno(imp, ino);
@ -759,7 +759,7 @@ cd9660_vget_internal(mp, ino, flags, vpp, relocated, isodir)
}
#endif
} else
bp = 0;
bp = NULL;
ip->i_mnt = imp;

View File

@ -353,7 +353,7 @@ unix2dosfn(const u_char *un, u_char dn[12], size_t unlen, u_int gen,
* ignores all dots before extension, and use all
* chars as filename except for dots.
*/
dp = dp1 = 0;
dp = dp1 = NULL;
for (cp = un + 1, i = unlen - 1; --i >= 0;) {
switch (*cp++) {
case '.':
@ -365,7 +365,7 @@ unix2dosfn(const u_char *un, u_char dn[12], size_t unlen, u_int gen,
default:
if (dp1)
dp = dp1;
dp1 = 0;
dp1 = NULL;
break;
}
}

View File

@ -256,14 +256,14 @@ fc_lookup(struct denode *dep, u_long findcn, u_long *frcnp, u_long *fsrcnp)
{
int i;
u_long cn;
struct fatcache *closest = 0;
struct fatcache *closest = NULL;
ASSERT_VOP_LOCKED(DETOV(dep), "fc_lookup");
for (i = 0; i < FC_SIZE; i++) {
cn = dep->de_fc[i].fc_frcn;
if (cn != FCE_EMPTY && cn <= findcn) {
if (closest == 0 || cn > closest->fc_frcn)
if (closest == NULL || cn > closest->fc_frcn)
closest = &dep->de_fc[i];
}
}

View File

@ -454,7 +454,7 @@ msdosfs_lookup_(struct vnode *vdp, struct vnode **vpp,
* in a deadlock.
*/
brelse(bp);
bp = 0;
bp = NULL;
foundroot:
/*