Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp489998pxb; Wed, 3 Nov 2021 07:32:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+Q3sMuuM9n7nMUijGGynUEhotgrKBj7L95TCE9rSHWku7kPQ+baUcje00tYk/6QHFJReE X-Received: by 2002:a5d:9492:: with SMTP id v18mr30705050ioj.158.1635949922277; Wed, 03 Nov 2021 07:32:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635949922; cv=pass; d=google.com; s=arc-20160816; b=aWQkcGHCLCRxaONxi//xgbvVOCVuyS2SPxFKF3awp9trhniBQmcodedc+j6prhCz28 TReFCOoOl7BeqTsYXqT3r6fv4L/aIb238l65ES4S7sE1e/O04idNykFhATlOMwiFMx6C 6GKoVIoMNHy4p0JpRWPCQVgzbw+KuTuJYBQ4gWdadNvFmR9BTSSL+gvwDy3uvfAxd9c4 bAb9YeVLaCWRDRNAGwArVs0gzxVfyaMYj+Oyf5hLEf2XuGHVmx5JI96baSvQRRIjvKmO H178dTa66m3GrfFlO1Bbp0gn/uc8HGYTtHTH4wlYNNzo3QLW55Owhfa2t3eeE/k2yhPX ByKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=AdrTipgVY0e4HgeDrXQ/vMlb5/10PfDAwIyRNkHWIUE=; b=ADyeBxyJz8B2proDp7nZyaAc4axQQrvjF23hVQyP+0Mb74g+ZAsF/4hmjnRCgY3+HQ R+qOS87vakQ4DODMYYH5S1piZLjxvOM6iu1lns47tHm64rdecmPWjgrBHiazpXZ3ZDXo 3gkfSZaR1F36lTFoVA/QAXHmJfe275/ze/gPUDFxlXFpXrAIEvkTk/m0XZs/0Rug5vdu Ft97w8A+Nvveg3+g5iloNkhxmp8VaANv4dEbO9i2r+ZkbMed9tv+vvdYxoc1OviQzS9u zcBvhsbJjp2adgj6TYdwy1COQGmbfTPvDbc1EZfVe9Q/nz3jMSs9oj/U2cDvwx3SwaOz dovw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b="UU/0OK5P"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="FEmw23/s"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n43si2536981jaf.21.2021.11.03.07.31.49; Wed, 03 Nov 2021 07:32:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b="UU/0OK5P"; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="FEmw23/s"; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232063AbhKCObX (ORCPT + 99 others); Wed, 3 Nov 2021 10:31:23 -0400 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:25932 "EHLO mx0a-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232077AbhKCObW (ORCPT ); Wed, 3 Nov 2021 10:31:22 -0400 Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1A3E173U008315; Wed, 3 Nov 2021 14:28:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2021-07-09; bh=AdrTipgVY0e4HgeDrXQ/vMlb5/10PfDAwIyRNkHWIUE=; b=UU/0OK5PJT2NWeeu1wTUxzKKj+u2VvLahwIclVx0fmoex/YhAKwi7eNA7omRq45YBmxi 9hwcuNbLd9npUM+GCNSLeMlkFVqN9gHgvwPGBOXQIJ5XWrf9eKB3H80coLfLRFk6NJ7f qaEzbGfjpzD9yP6VLlhWf6dKnzT1EyjYHXq1cp1BAI9T6lHJCCgL74TWFSD+j7YqSDco VL9lfd2oZFtBqibgh646D53Z5d5K9Q8mD0bWx4bQzEaWiQRfSdS2gmblK+nnRB613/9+ mwhycD2kfJZIlbmCk1P7Tg6u6Y9Odbvc01FE7r31nsM+0AHE5b3Ywug6f27Vx2X01OJ/ 1A== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3c3q1n9rsk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 Nov 2021 14:28:38 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 1A3EP3Sk132661; Wed, 3 Nov 2021 14:28:35 GMT Received: from nam12-bn8-obe.outbound.protection.outlook.com (mail-bn8nam12lp2171.outbound.protection.outlook.com [104.47.55.171]) by userp3030.oracle.com with ESMTP id 3c27k73r7c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 03 Nov 2021 14:28:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kqhOE1bbJeryoblhrUUOxnqah77NvCLvOhstubpJbDGjTidKfb2T4iTJSvaEoqwcqpXNmjYQpDxX+82GgBKsM168IEb4IekAyNvDN5NNjModJye+3fjmpQE1ae5ty2HS+2b/hrLooT9o8H8qOvMk0zYPTdA2g85iVd/BF7qiYd44XJNz9NmhrTUa+VUdlLTGhr407vskZxxBU72vjJKdrd5ZKCBrcKbLrYBhPf5QNwXRccqGFSHdi1+hKvqemfebwBofCHKtB4tdcjh7gVyuHndPriliARkkQMPpMzvCvl9sJ0MJnQh7KB2k48xYOb9ubp1RNznr3FDG61LIsRrl2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AdrTipgVY0e4HgeDrXQ/vMlb5/10PfDAwIyRNkHWIUE=; b=Idx8jbWL/BXKzlcK9A6Z9Ljm1tYTH6Xtzr64S+ZeofVbuePesOflhCPhLKt5hirQK71n8quIn3VexOBvAUibewLEPAN/aqTZEONJJG7Yx5BEJtjxrAnUo8qHdEwTV1KtxNH1FROVLeRVGU+HKs1BelVQlyVOsv3gBUfCAK6V06JEAelgi3sjgkVCCzYCDhUzZ93Lo+Dwl6wqCuRZhYwmlhll4CR8LXblX9g6wymzvA2Qpy8mjkMMoM4QEHnljsBB9yX1oAPiJdNPp8J/i2U+7BdtIybU2gZzO1F05fXKU+OJSYwkmLwnqThwVMsz+JxPAZb4csuWy3k6lmQSJLCgzA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AdrTipgVY0e4HgeDrXQ/vMlb5/10PfDAwIyRNkHWIUE=; b=FEmw23/sNb6H21EcAfShAOaUyFRP2pCgfE0ALLsv48v34Wrgtdl2YAOjrsMDCS5D4NFlUgnmQCnbnvLzPmzYot90GDoSjTNtsUTRM5NQUc0oA4AX4tZrdc2uNNxh3XiP4udNsGbPrvqILipHL6mY1Wvs7L3Zau1UbieiYSKb/D0= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=oracle.com; Received: from CY4PR1001MB2358.namprd10.prod.outlook.com (2603:10b6:910:4a::32) by CY4PR10MB1479.namprd10.prod.outlook.com (2603:10b6:903:27::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.18; Wed, 3 Nov 2021 14:28:32 +0000 Received: from CY4PR1001MB2358.namprd10.prod.outlook.com ([fe80::e5e3:725b:4bb:7809]) by CY4PR1001MB2358.namprd10.prod.outlook.com ([fe80::e5e3:725b:4bb:7809%5]) with mapi id 15.20.4649.020; Wed, 3 Nov 2021 14:28:32 +0000 Date: Wed, 3 Nov 2021 17:28:14 +0300 From: Dan Carpenter To: Saurav Girepunje Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, straube.linux@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH] staging: r8188eu: hal: remove goto statement and local variable Message-ID: <20211103142814.GX2794@kadam> References: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-ClientProxiedBy: JNAP275CA0015.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:4c::20) To CY4PR1001MB2358.namprd10.prod.outlook.com (2603:10b6:910:4a::32) MIME-Version: 1.0 Received: from kadam (62.8.83.22) by JNAP275CA0015.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:4c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.10 via Frontend Transport; Wed, 3 Nov 2021 14:28:28 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 13526c94-debe-48e4-5509-08d99ed63682 X-MS-TrafficTypeDiagnostic: CY4PR10MB1479: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2512; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AQhikp+7W4UZz1CLulbQBeOB5SWneI4BWtqGQXRep8FziyurwbiQfuBMLznERLE0weDoF7cbFhRD/VQsE15V/MwaMZT6oSCfOOB8BbuK1GezKqDolH99xIfqzuhmN9swDZPXPW5kK/tJAbUe+Z4RhdquogrfrPyMufnQm+YIzHQ3FVvwcMecVdCjrlq2BEycb9W89wPh67pgvcXQgV6Z/qxsC7ZXn5DslIF2Dhucx8DXUuB1g3ck7GHgfgOrwajQvTjB+/0Ggs3J0mIgbeeQJTy6092RAer7EWK8JgG+tCiEPCVpfShQKSBbgcw+YKUVneJbt0VH6H5EK/I39dpkRNcEryBm/NAOL1eEVO0R+SJwVGocvC2BIFVBQOckZrQcA2zaSsBdCdU39jEs4pkTJaBkYJFjG80+DRgWJOP8u/AY54hxWdGWsLFoUGwI//cmXhbA0SOERvQMzoau1O/ZVsrNSXfyttOx7qpWsMAzqUuWf1b2pXbH7p0AwyD8vQSaNkgaoMT6EdfjS7ZhbUJDbnlrVj82Mwa4OBblfCX55g8MxAunPtJXMw93sJPk/kQIgj11TY/CYszYCZnE+Jd/oXIVrqxWakOPbjlqW26Mu0MEBO0ENGU1eLk7G2WR0OlbF/TPtMDsC5LBDPfO78tKi7qW6n4RYEr7U2Wf9Fo4ZhvwP3byNJxBfhI3e9Yjh41KOsKqgw7R61Vf8MZjWIB3Yg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR1001MB2358.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(86362001)(1076003)(8676002)(5660300002)(9576002)(66946007)(26005)(186003)(8936002)(316002)(956004)(4744005)(33656002)(2906002)(38350700002)(6916009)(38100700002)(66556008)(52116002)(9686003)(55016002)(6496006)(33716001)(6666004)(66476007)(4326008)(508600001)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Pwohrlyt24LQs6DATJLae0y16KJjqywxdycJ39CuxSr14dlgiXkRTBzGE8T/?= =?us-ascii?Q?f9t6sntECorHlS8ckkqw046901lSH5QG+dczsEeyCKLC+yZdE6ChjtuFkJKq?= =?us-ascii?Q?HgGPD7AgKlme3PMi85i16/zRPdL07ka/KbS7lFx6p6psYG56NIY+yeH0bFCV?= =?us-ascii?Q?k8uYG3FqMfxDxyRNw2RYvXr1i6vouQwy8Vc6GKy17egoL1vN3llGRCWcDAtp?= =?us-ascii?Q?1DTUAFK05Y2hzuq5caF4aCSoH3uBnRmH9ZKvzlifpQNiyMgmGkG3V6eEcVou?= =?us-ascii?Q?+X3jHdjT0etd6zTVPVqZ2g7BlS2iIYgp0q4XJBWDrVtIL+rFBoPAVwUEQKoq?= =?us-ascii?Q?kE819VCGF5QEh5VBF2tTdA9Gqp5+uKFe/DTfhWEV2PCjOaY7xdtmF55DbxnA?= =?us-ascii?Q?LVgoqsOpBGvJZjA7KMIcfxhPu4m2a3oYrWC8uHKkqex8yFanLS34/EVYoAfi?= =?us-ascii?Q?p4/Nsp0mMGlE3WhHqYmwh35GlkWlLDjZR949hIxi6+NP3SLFa7PyeS+JC0Fi?= =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jmxnQg6L6pBboh8C8wEg6ytw4?= =?us-ascii?Q?Rj7/Yvkure3ie2dpA3T7XKtkTvkkWJoy0VEvmiVuCoMuM4uxrPsE7/4aXWkm?= =?us-ascii?Q?nEfxUlm9wQp4+MOK+cE31sfriK35zb1gDjXILFvXEnm3pUVpDuW8lqaaL8rE?= =?us-ascii?Q?PDvuagIXjgASM5xgFvIZFX1oEth629Lykjp3mOQa/RFM421duy7lr6JEH66w?= =?us-ascii?Q?bLW3HzZNURJwuOl+j/VMYhkGIOvAXFeswDXeJXA/oQFnGvIcl4pANAlN7pcB?= =?us-ascii?Q?qoOheQ=3D=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13526c94-debe-48e4-5509-08d99ed63682 X-MS-Exchange-CrossTenant-AuthSource: CY4PR1001MB2358.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2021 14:28:32.7255 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PRf3ZSlEQApRz2Nb+yUZuCt81hYK0EPRCsBzDNRZ+TPLBw30q6EaaOSqtb5rFnT4qxBaABlNR53kiTzzuAAUp2TyVXgsGlkAsDGL1Bw5opM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR10MB1479 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10156 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 spamscore=0 malwarescore=0 mlxlogscore=999 adultscore=0 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2111030082 X-Proofpoint-ORIG-GUID: IetIOVoPpqpHA9snwJexWtQjgWMBketE X-Proofpoint-GUID: IetIOVoPpqpHA9snwJexWtQjgWMBketE Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 27, 2021 at 10:08:08AM +0530, Saurav Girepunje wrote: > Remove the goto statement from FillH2CCmd_88E(). In this function goto > can be replace by return statement. As on goto label exit, function > only return it is not performing any cleanup. Avoiding goto will > improve the function readability. After replacing the goto statement > local variable ret is also not needed. So remove the ret local variable. > > Signed-off-by: Saurav Girepunje > --- Thanks! Reviewed-by: Dan Carpenter regards, dan carpenter