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

Commit 420077a0 authored by Himateja Reddy's avatar Himateja Reddy
Browse files

msm: adsprpc: remove redundant check for static PDR handle



Remove the redundant check for static PDR handle as the PD up flag
serves the same purpose.

Change-Id: I6c9d925fec745bf84bd26468bf39c8e6e78b858d
Acked-by: default avatarThyagarajan Venkatanarayanan <venkatan@qti.qualcomm.com>
Signed-off-by: default avatarHimateja Reddy <hmreddy@codeaurora.org>
parent 7b54b39b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4266,8 +4266,7 @@ static int fastrpc_mmap_remove_pdr(struct fastrpc_file *fl)
		err = -EBADR;
		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;
	}