summaryrefslogtreecommitdiff
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-02-13 15:09:37 +0400
committerRoland Dreier <roland@purestorage.com>2014-03-18 03:28:09 +0400
commitdb498827ff62611c12c03f6d33bcc532d9fb497e (patch)
tree801bb6ba01e08ba23eaef57bb4395904915ea099 /drivers/infiniband
parent9d194d1025f463392feafa26ff8c2d8247f71be1 (diff)
downloadlinux-db498827ff62611c12c03f6d33bcc532d9fb497e.tar.xz
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/qib/qib_file_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c b/drivers/infiniband/hw/qib/qib_file_ops.c
index 2023cd61b897..b15e34eeef68 100644
--- a/drivers/infiniband/hw/qib/qib_file_ops.c
+++ b/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;
}