IB/qib: Remove duplicate check in get_a_ctxt()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Feb 2014 11:09:37 +0000 (14:09 +0300)
committerRoland Dreier <roland@purestorage.com>
Mon, 17 Mar 2014 23:28:09 +0000 (16:28 -0700)
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>
drivers/infiniband/hw/qib/qib_file_ops.c

index 2023cd6..b15e34e 100644 (file)
@@ -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;
                        }