mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
14a61442c2
commit
73dff8be9e
1 changed files with 1 additions and 2 deletions
|
@ -198,8 +198,7 @@ static char *savemem(struct nfsd4_compoundargs *argp, u32 *p, int nbytes)
|
||||||
p = new;
|
p = new;
|
||||||
memcpy(p, argp->tmp, nbytes);
|
memcpy(p, argp->tmp, nbytes);
|
||||||
} else {
|
} else {
|
||||||
if (p != argp->tmpp)
|
BUG_ON(p != argp->tmpp);
|
||||||
BUG();
|
|
||||||
argp->tmpp = NULL;
|
argp->tmpp = NULL;
|
||||||
}
|
}
|
||||||
if (defer_free(argp, kfree, p)) {
|
if (defer_free(argp, kfree, p)) {
|
||||||
|
|
Loading…
Reference in a new issue