From 420077a029be393cb2c93890afe191076d985bf1 Mon Sep 17 00:00:00 2001 From: Himateja Reddy Date: Mon, 14 Sep 2020 14:01:54 -0700 Subject: [PATCH] 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: Thyagarajan Venkatanarayanan Signed-off-by: Himateja Reddy --- 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 bf9903514909..c2bb4bfdf6c9 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -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; }