Skip to contentSkip to conversation

BUG_ON() conversion in fs/nfsd/

PATCH New Eric Sesterhenn 1 participant 1 message Sep 24, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

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