Re: [PATCH 8/8] idr: reduce the unneeded check in free_layer()

2014-04-18 Thread Tejun Heo
On Fri, Apr 18, 2014 at 08:49:55PM +0800, Lai Jiangshan wrote: > If "idr->hint == p" is true, it also implies "idr->hint" is true(not NULL). > > Signed-off-by: Lai Jiangshan Acked-by: Tejun Heo Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

[PATCH 8/8] idr: reduce the unneeded check in free_layer()

2014-04-18 Thread Lai Jiangshan
If "idr->hint == p" is true, it also implies "idr->hint" is true(not NULL). Signed-off-by: Lai Jiangshan --- lib/idr.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/idr.c b/lib/idr.c index 314ea5f..08d010c 100644 --- a/lib/idr.c +++ b/lib/idr.c @@ -143,7 +143,7 @@