summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-10-03 23:37:14 +0200
committerAdrian Bunk <bunk@stusta.de>2006-10-03 23:37:14 +0200
commit73dff8be9ea89df26bfb6a0443ad912de6e7bd00 (patch)
treed60d4fe0bf5026da8dccb7b9c077c501726c5f32 /fs/nfsd/nfs4xdr.c
parent14a61442c2203d2a49f2f954bfa9259c0ddac1aa (diff)
downloadop-kernel-dev-73dff8be9ea89df26bfb6a0443ad912de6e7bd00.zip
op-kernel-dev-73dff8be9ea89df26bfb6a0443ad912de6e7bd00.tar.gz
BUG_ON() conversion in fs/nfsd/
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 <snakebyte@gmx.de> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 5446a08..5be0043 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -198,8 +198,7 @@ static char *savemem(struct nfsd4_compoundargs *argp, u32 *p, int nbytes)
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)) {
OpenPOWER on IntegriCloud