mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
vmalloc: remove redundant unlikely()
IS_ERR() already implies unlikely(), so it can be omitted here. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Reviewed-by: Minchan Kim <minchan.kim@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1e50df39f6
commit
ddf9c6d472
1 changed files with 1 additions and 1 deletions
|
@ -748,7 +748,7 @@ static struct vmap_block *new_vmap_block(gfp_t gfp_mask)
|
|||
va = alloc_vmap_area(VMAP_BLOCK_SIZE, VMAP_BLOCK_SIZE,
|
||||
VMALLOC_START, VMALLOC_END,
|
||||
node, gfp_mask);
|
||||
if (unlikely(IS_ERR(va))) {
|
||||
if (IS_ERR(va)) {
|
||||
kfree(vb);
|
||||
return ERR_CAST(va);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue