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: Jeya R <jeyr@codeaurora.org>
This commit is contained in:
Jeya R
2020-09-08 14:08:50 +05:30
parent e33f4a082a
commit d3e858a5d6

View File

@@ -3194,8 +3194,7 @@ static int fastrpc_mmap_remove_pdr(struct fastrpc_file *fl)
VERIFY(err, cid == fl->cid); VERIFY(err, cid == fl->cid);
if (err) if (err)
goto bail; goto bail;
if (!me->channel[fl->cid].spd[session].ispdup && if (!me->channel[fl->cid].spd[session].ispdup) {
me->channel[fl->cid].spd[session].pdrhandle) {
err = -ENOTCONN; err = -ENOTCONN;
goto bail; goto bail;
} }