Re: [PATCH] kernel/range.c: subtract_range: return instead of continue to save some loops

2013-03-18 Thread Yinghai Lu
On Mon, Mar 18, 2013 at 3:21 AM, Lin Feng wrote: > If we fall into that branch it means that there is a range fully covering the > subtract range, so it's suffice to return there if there isn't any other > overlapping ranges. > > Also fix the broken phrase issued by printk. > > Cc: Yinghai Lu >

[PATCH] kernel/range.c: subtract_range: return instead of continue to save some loops

2013-03-18 Thread Lin Feng
If we fall into that branch it means that there is a range fully covering the subtract range, so it's suffice to return there if there isn't any other overlapping ranges. Also fix the broken phrase issued by printk. Cc: Yinghai Lu Signed-off-by: Lin Feng --- kernel/range.c | 4 ++-- 1 file

[PATCH] kernel/range.c: subtract_range: return instead of continue to save some loops

2013-03-18 Thread Lin Feng
If we fall into that branch it means that there is a range fully covering the subtract range, so it's suffice to return there if there isn't any other overlapping ranges. Also fix the broken phrase issued by printk. Cc: Yinghai Lu ying...@kernel.org Signed-off-by: Lin Feng linf...@cn.fujitsu.com

Re: [PATCH] kernel/range.c: subtract_range: return instead of continue to save some loops

2013-03-18 Thread Yinghai Lu
On Mon, Mar 18, 2013 at 3:21 AM, Lin Feng linf...@cn.fujitsu.com wrote: If we fall into that branch it means that there is a range fully covering the subtract range, so it's suffice to return there if there isn't any other overlapping ranges. Also fix the broken phrase issued by printk. Cc: