Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
db498827ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 			}