]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
idr: reduce the unneeded check in free_layer()
authorLai Jiangshan <laijs@cn.fujitsu.com>
Fri, 6 Jun 2014 21:37:14 +0000 (14:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Jun 2014 23:08:12 +0000 (16:08 -0700)
commit15f3ec3f238a44181e1ae85b3cc2c27b9fece01b
treea8bdb83f4c4b224fa33bc4dfc5f2ac08b250e980
parentaefb76829742803751725bc75bcdc43fe803ac22
idr: reduce the unneeded check in free_layer()

If "idr->hint == p" is true, it also implies "idr->hint" is true(not NULL).

Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/idr.c