Browse Source

IB/qib: Remove duplicate check in get_a_ctxt()

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

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Dan Carpenter 11 years ago
parent
commit
db498827ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/infiniband/hw/qib/qib_file_ops.c

+ 1 - 1
drivers/infiniband/hw/qib/qib_file_ops.c

@@ -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;
 			}