Thread (5 messages) flat view 5 messages, 3 authors, 2013-02-04

Re: [PATCH v2 02/14] atm/nicstar: don't use idr_remove_all()

From: Tejun Heo <tj@kernel.org>
Date: 2013-02-04 18:35:16
Also in: lkml

Hey,

On Mon, Feb 04, 2013 at 01:10:34PM -0500, chas williams - CONTRACTOR wrote:
you assign id1 to 0, so this never happens i think.  i don't think the
reason to preassign id1/id2 exists anymore once the do loop is removed.
quoted
+			id1 = idr_alloc(&card->idr, handle1, 0, 0, GFP_ATOMIC);
+			if (id1 < 0) {
+				err = id1;
you dont need to assign err since it isn't returned.
Heh, I put v2 under the wrong thread.  I'll do v3 and post it under
v1.

Thanks.

-- 
tejun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help