From: Tobias Klauser Date: Thu, 13 Jan 2011 23:46:15 +0000 (-0800) Subject: vmalloc: remove redundant unlikely() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ddf9c6d472825ceda66b3adff0f6437dbcd37f71;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git vmalloc: remove redundant unlikely() IS_ERR() already implies unlikely(), so it can be omitted here. Signed-off-by: Tobias Klauser Reviewed-by: Minchan Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 284346ee0e9..cac13b41563 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c @@ -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); }