fs misc: for pointers replace 0 with NULL.
Mostly cosmetical, no functional change. Found with devel/coccinelle.
This commit is contained in:
parent
f58ccf2c15
commit
e0bee002cf
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
@ -454,7 +454,7 @@ found:
|
||||
* in a deadlock.
|
||||
*/
|
||||
brelse(bp);
|
||||
bp = 0;
|
||||
bp = NULL;
|
||||
|
||||
foundroot:
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user