Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
			}