Skip to contentSkip to conversation

IB/qib: remove duplicative check in get_a_ctxt()

PATCH New Dan Carpenter 1 participant 1 message Feb 13, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IB/qib: remove duplicative check in get_a_ctxt()

We already know "pusable" is non-zero, no need to check again.

drivers/infiniband/hw/qib/qib_file_ops.c +1 -1
index 275f247f9fca..cff8f830492c 100644
@@ -1459,7 +1459,7 @@ static int get_a_ctxt(struct file *fp, const struct qib_user_info *uinfo,
 					cused++;
 				else
 					cfree++;
-			if (pusable && cfree && cused < inuse) {
+			if (cfree && cused < inuse) {
 				udd = dd;
 				inuse = cused;
 			}