From d3e858a5d64ea8bcd0d37bfb971232f050fb9232 Mon Sep 17 00:00:00 2001 From: Jeya R Date: Tue, 8 Sep 2020 14:08:50 +0530 Subject: [PATCH] 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 --- drivers/char/adsprpc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index a66effa75ab9..5a0b4c8712ee 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -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; }