From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3367167576759287982==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] mt6625l: fix returnvar.cocci warnings Date: Sun, 12 Jul 2020 20:19:13 +0800 Message-ID: <20200712121913.GA72697@f669aaa75a90> In-Reply-To: <202007122043.encHIg4V%lkp@intel.com> List-Id: --===============3367167576759287982== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c:2435:5-13: U= nneeded variable: "i4Status". Return "0" on line 2490 drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c:2350:5-13: U= nneeded variable: "i4Status". Return "0" on line 2411 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: 9a72d145abe4 ("mt6625l: include wifi-folder") Signed-off-by: kernel test robot --- tree: https://github.com/frank-w/BPI-R2-4.14 5.8-rc head: ca0d6f7786586ca7ba424d5967d780dd3c75748b commit: 9a72d145abe49d9cb1e16d479b0b18caa20cdd71 [5/38] mt6625l: include wi= fi-folder Please take the patch only if it's a positive warning. Thanks! gl_p2p.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c +++ b/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p.c @@ -2347,7 +2347,6 @@ int mtk_p2p_wext_invitation_request(IN struct net_device *prDev, IN struct iw_request_info *info, IN OUT union iwreq_data *wrqu, IN OUT= char *extra) { - int i4Status =3D 0; #if 0 P_ADAPTER_T prAdapter =3D (P_ADAPTER_T) NULL; P_GLUE_INFO_T prGlueInfo =3D (P_GLUE_INFO_T) NULL; @@ -2408,7 +2407,7 @@ mtk_p2p_wext_invitation_request(IN struc } while (FALSE); #endif = - return i4Status; + return 0; = } = @@ -2432,7 +2431,6 @@ int mtk_p2p_wext_invitation_abort(IN struct net_device *prDev, IN struct iw_request_info *info, IN OUT union iwreq_data *wrqu, I= N OUT char *extra) { - int i4Status =3D 0; #if 0 P_ADAPTER_T prAdapter =3D (P_ADAPTER_T) NULL; P_GLUE_INFO_T prGlueInfo =3D (P_GLUE_INFO_T) NULL; @@ -2487,7 +2485,7 @@ mtk_p2p_wext_invitation_abort(IN struct } while (FALSE); #endif = - return i4Status; + return 0; = } =20 --===============3367167576759287982==--