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

Commit d3e858a5 authored by Jeya R's avatar Jeya R
Browse files

adsprpc: Remove redundant check for static pd handle



Remove the redundant check for static pd handle as pd up
variable also serves for the same purpose.It is sufficient
to check for ispdup state.

Change-Id: I0c42f9a5ac347cb774983544c12e46d9431aab93
Signed-off-by: default avatarJeya R <jeyr@codeaurora.org>
parent e33f4a08
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -3194,8 +3194,7 @@ static int fastrpc_mmap_remove_pdr(struct fastrpc_file *fl)
	VERIFY(err, cid == fl->cid);
	if (err)
		goto bail;
	if (!me->channel[fl->cid].spd[session].ispdup &&
		me->channel[fl->cid].spd[session].pdrhandle) {
	if (!me->channel[fl->cid].spd[session].ispdup) {
		err = -ENOTCONN;
		goto bail;
	}