Commit db498827 authored by Dan Carpenter's avatar Dan Carpenter Committed by Roland Dreier

IB/qib: Remove duplicate check in get_a_ctxt()

We already know "pusable" is non-zero, no need to check again.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 9d194d10
...@@ -1459,7 +1459,7 @@ static int get_a_ctxt(struct file *fp, const struct qib_user_info *uinfo, ...@@ -1459,7 +1459,7 @@ static int get_a_ctxt(struct file *fp, const struct qib_user_info *uinfo,
cused++; cused++;
else else
cfree++; cfree++;
if (pusable && cfree && cused < inuse) { if (cfree && cused < inuse) {
udd = dd; udd = dd;
inuse = cused; inuse = cused;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment