atm/nicstar: convert to idr_alloc()
Convert to the much saner new idr interface. The existing code looks buggy to me - ID 0 is treated as no-ID but allocation specifies 0 as lower limit and there's no error handling after partial success. This conversion keeps the bugs unchanged. Signed-off-by: NTejun Heo <tj@kernel.org> Acked-by: NChas Williams <chas@cmf.nrl.navy.mil> Reported-by: Nkbuild test robot <fengguang.wu@intel.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
Showing
想要评论请 注册 或 登录