From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6393731724468434265==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] mt6625l: fix returnvar.cocci warnings Date: Mon, 06 Jul 2020 14:41:16 +0800 Message-ID: <20200706064116.GA31410@9cf1f7d5106f> In-Reply-To: <202007061455.Nn14Bg8E%lkp@intel.com> List-Id: --===============6393731724468434265== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c:470:7-1= 0: Unneeded variable: "ret". Return "0" on line 473 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: 5a3d075a983c ("mt6625l: include wifi-folder") Signed-off-by: kernel test robot --- tree: https://github.com/frank-w/BPI-R2-4.14 5.8-wifi head: 4b8951570a4f2ef564d134f5aa8779fd067af1c9 commit: 5a3d075a983c166a2a4294c272b47698e24c97c6 [5/11] mt6625l: include wi= fi-folder Please take the patch only if it's a positive warning. Thanks! osal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c +++ b/drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/osal.c @@ -467,10 +467,8 @@ INT32 osal_wait_for_event_timeout(P_OSAL = INT32 osal_trigger_event(P_OSAL_EVENT pEvent) { - INT32 ret =3D 0; - wake_up_interruptible(&pEvent->waitQueue); - return ret; + return 0; } = INT32 osal_event_deinit(P_OSAL_EVENT pEvent) --===============6393731724468434265==--