diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-02-13 14:09:37 +0300 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-03-17 16:28:09 -0700 |
commit | db498827ff62611c12c03f6d33bcc532d9fb497e (patch) | |
tree | 801bb6ba01e08ba23eaef57bb4395904915ea099 /drivers/infiniband | |
parent | 9d194d1025f463392feafa26ff8c2d8247f71be1 (diff) | |
download | op-kernel-dev-db498827ff62611c12c03f6d33bcc532d9fb497e.zip op-kernel-dev-db498827ff62611c12c03f6d33bcc532d9fb497e.tar.gz |
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.c | 2 |
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 2023cd6..b15e34e 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; } |