BUG_ON() conversion in fs/nfsd/
Subsystems (2)
PATCH 1/1 BUG_ON() conversion in fs/nfsd/
hi,
this patch converts an if () BUG(); construct to BUG_ON(); which occupies less space, uses unlikely and is safer when BUG() is disabled.
Signed-off-by Eric Sesterhenn <[email protected]>
fs/nfsd/nfs4xdr.c renamed from fs/nfsd/nfs4xdr.c.orig +1 -2
@@ -198,8 +198,7 @@ static char *savemem(struct nfsd4_compou p = new;memcpy (p, argp->tmp, nbytes); }else { -if (p != argp->tmpp) -BUG (); +BUG_ON (p != argp->tmpp); argp->tmpp =NULL ; }if (defer_free (argp, kfree, p)) {
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors