Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1609017pxb; Mon, 11 Oct 2021 09:24:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4ooaK6Rcf5hpI3AHS8zzuRAYNWy2hzjqXBTnOgv63aCtwMEGdDw1+zqeBNVyQ7+vrvyJV X-Received: by 2002:a17:90b:1c92:: with SMTP id oo18mr31862906pjb.56.1633969475746; Mon, 11 Oct 2021 09:24:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1633969475; cv=pass; d=google.com; s=arc-20160816; b=E6xWyjf+g2UH75AEnJUQYFdrZyAwnh2esg/nDao38BIapcC/CkN70Up/EHGRSp5sBb Mo4ufxI3l0rb+nnJuDeFo1CaUkgtykN4JhCvDDVROxvMjeBA/tMjMcsjfmpgNBUdXSBi eM66MwOGUGsDwMT2U/WL7G7gnyqCFlejIU8ZwqxcL+3oq48CrEqsnKIey5foTQzK6ay7 xfYn7cLmVH8ydYbXYJ0uNv+DCgtnhQTfIgTRFRZhVv0VlgMQPnaqFJ7jllZrlHqtR2F6 mvNKZrdFfT7J3we1fDUiqQARzhIJoljYtmogGETpRGFUN7+iQLDsYp6f6ocLVuKk8sMG ppRQ== 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=uOJLc/eWhTNiW7Hymf/I4QnxZ9uegEen/wTr7VCwI7c=; b=TFv1ppOxsZQSVBlgJgZrnPZnQFFW3ZHJ+Q4onPD093IWC64m/Yrfk/pqu2dWQBGM7M mImki+GQnEp4E3w13+dow+RSibZLG5MyrTOonavIuvwyvTcxETqftL8wTcPKkCnM+pxH R1BJDjcrmxrNmksKVzB4IzfPH+Uk9su3kk7wcsKnq+g9xRad12Kwrb7NCxYyZnu0FbKK S9GXFSz91M6o2mhCTgWPMQX/uj40ZjAJsef5+uB4SEQffyNwcqPOTuNsnjv1QMFufTvT YDauizBfVY7Zh65AfbMY4whyMhpcl/aPoPz69LrcZmr+jNmA8hBrRmUp0l5lmFjnsf/x gcLA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=o0ugt2OX; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NKm9luKM; 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 125si10562523pff.12.2021.10.11.09.24.22; Mon, 11 Oct 2021 09:24:35 -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=o0ugt2OX; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=NKm9luKM; 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 S234764AbhJKMMD (ORCPT + 99 others); Mon, 11 Oct 2021 08:12:03 -0400 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:63996 "EHLO mx0a-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234675AbhJKMMC (ORCPT ); Mon, 11 Oct 2021 08:12:02 -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 19BAdxYJ004168; Mon, 11 Oct 2021 12:09:53 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=uOJLc/eWhTNiW7Hymf/I4QnxZ9uegEen/wTr7VCwI7c=; b=o0ugt2OXeD8660jEuIn/GFyTIhoM8hwhBH2yuj+0gQinmX8Y0Z7g2zBKS8EPHdYYQgts Fh7uKeRIVWxj9Bis0/yrAdtPKUp52olWUmeB01OV+zSLxeUF80VdP97y2GZYrWxMnD8m Ob22Lo9UGWV96inUDJqMFwhZn/lgR7+hjLSc4s6wp669Ofn0o93hEISgrtI7bOvm3HPg uOXuxDbzKoZhcYCmF+6MtbLVhS3rRA4l4Jpb3chig66YGf/vqOPj/JfDqq0xlQGzUO8V JU6JPpGTau5+vl/LZPVluVAJfolhqVYjm5ZybgcOtXAJEr/iL6zcGp2MXJPvOajattbe uA== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3bkxxabh42-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 11 Oct 2021 12:09:53 +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 19BC504J045365; Mon, 11 Oct 2021 12:09:51 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2175.outbound.protection.outlook.com [104.47.59.175]) by userp3030.oracle.com with ESMTP id 3bkyv6wtj0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 11 Oct 2021 12:09:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fn7pF0vMXpsQPTgX2WGIeDkkLzIGfjiKfUHFbOMhJwj3bmL2+WHTU8pX+Hp2eZslUYtdY3QzqKKeoJVAwsQjrxIQpeZYYyiPAuJDa3QMGyS7x573XSaZUA8pGhhnbDqEOw0YDH/sZujzBVdixoPTAk5S9YH2zZFoXJYBGnimuoFm+oYwasWv2dhOdV8gAvxFmc0K//GNDHDDz0kwpxZONBIGQTSRGn6W20v//Dwo2uTEd0Yc6OsYfwKb24e8Gsqqep5zhAa2VET+TiEdV+sm3Zo2pJDVfrb8queTSwa1IWHELDXzbDVKzYn0wcC1SUgDP5IFpqsfGXsBZkesN27/PQ== 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=uOJLc/eWhTNiW7Hymf/I4QnxZ9uegEen/wTr7VCwI7c=; b=UJb5lCTphNDGhl37ksGpKwDNTpwNbQLbl+4iZ9XBRcjnA2+CIW6BvUSEnn3gS3xXZHvsEU0xAUYua5G6bdD+0MKYT7xE3De6fP5w2KK6tiILPCnZ8JENUKmM8ch54Arg97pW0F1A4yGzZghTp5Hqae6+52wa8CbSo2c5qYbF/WAra5G3MWjxTu+vrSmBPR7C4NUKtc6Pzz0sqATTgKfQE8DP4fPtJzaNR2GLqQ+rWIFsTRX5ldoKrY4paIahx7IpDytycpNgRh9D/M4xQyGRMGAJfy7yrA7KNNKSZolvf0uKWtYENOyOjgKoD7dsaZBOQ7skdHPIpdFwKjQuRTKb8Q== 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=uOJLc/eWhTNiW7Hymf/I4QnxZ9uegEen/wTr7VCwI7c=; b=NKm9luKM0tybrnfdk0fTkJh/0IS3le5m7XpRfkgYMUS62dUY+rkUoMGuRrU1cXeWuldV5qcqGFVDaHU6VDvAjMoxj31QhE/FrdKFAfIr0ocedJqYCDI8RP4ARwLIxfWHcKF1UkAFoxX2AhFSqI9Fi6jSGOr37TrsWI2cU+eWqgU= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=oracle.com; Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by MWHPR1001MB2157.namprd10.prod.outlook.com (2603:10b6:301:32::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.25; Mon, 11 Oct 2021 12:09:49 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::d409:11b5:5eb2:6be9]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::d409:11b5:5eb2:6be9%5]) with mapi id 15.20.4587.026; Mon, 11 Oct 2021 12:09:49 +0000 Date: Mon, 11 Oct 2021 15:09:31 +0300 From: Dan Carpenter To: Saurav Girepunje Cc: gregkh@linuxfoundation.org, fabioaiuto83@gmail.com, ross.schm.dev@gmail.com, deborahbrouwer3563@gmail.com, hdegoede@redhat.com, marcocesati@gmail.com, phil@philpotter.co.uk, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH] staging: rtl8723bs: core: simplify the if condition Message-ID: <20211011120930.GI2048@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: JN2P275CA0022.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:3::34) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 Received: from kadam (62.8.83.99) by JN2P275CA0022.ZAFP275.PROD.OUTLOOK.COM (2603:1086:0:3::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.21 via Frontend Transport; Mon, 11 Oct 2021 12:09:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5437c761-da94-4aca-165f-08d98cb005f4 X-MS-TrafficTypeDiagnostic: MWHPR1001MB2157: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iOlXs6RnR2EtQrfbFUe8PFqhM1iNNN9FqULJXIZ1dD4X+UcviN8xf0PGaPSwkJeQ9clwdct8+vHCXu8zbhhYtPIgFMkpO9x9+7zcIFH9RI/YD4ZXGRB5f51X/egP2+8yLHcT0RkOumQdQGJB0T30CFtTdkB0kydQNgJRkkwkkd242kHnNTdeo/E75w+/XU3YnDGafh7jXh0dvUgimAxXeq1Z6db2sieQjcYCCFHr3SQXzdxjVacYQ9zrvASYriWwtZ4/wYsFp9wd3bMUx2Tcl+h98l2JiTi2NhrSvjqA3fHHdPjN4Xcgp6u6X4eDP2D/Avf27O7jEW5H6ftYiipJnnC/tTr3xfkdfW/Cy8RIxBW53jg/vOpgXTsSJcAuz+q6+fqNJEhsJ/LcaSqvRQtDvXCJiK1k/ti3j+VsRwWk08Vbx+HyTdzLEtg33epkYK5g85Sgp0mlsXewOlpMMMZxKHSdyvqfC25/Rydhhji6GaoU/PpNMJZ/dPGB+nXuBpUREBxruLWcyqtp2wIRbgEx7bx5KXlstUKvOIojVfMBocGcLqvsLBTpkJPBf0TbcANWD1DlYrZn6R4GaITjk5Oc1EBmVUZ9cigkJU+2iZioiSb1RgX0MrCuo7++djVDCnkl2WRsrff02/mu9arqxMTl/bDaYWoJWcdLRlzr0o/Xumo71Lk0clCT4HqNRCif4jK+3RuclWG1I/ztGV3Kx5CmJg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2365.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(186003)(33716001)(1076003)(6916009)(8936002)(7416002)(2906002)(86362001)(52116002)(6496006)(66556008)(66476007)(66946007)(6666004)(55016002)(508600001)(9686003)(4326008)(5660300002)(956004)(8676002)(316002)(38100700002)(38350700002)(33656002)(9576002)(26005)(44832011)(4744005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Kg4y2b+Lyaq3YDxlZln66o4UtEC+AHw/zTvTlhrZoqkdDqRRdy/cEDSUt9Dc?= =?us-ascii?Q?N5+pv72fKqwJ0znb5QS7EPWlghUk+sgBGK0ssQqhX24/GKFfH9rFXqsqGHSg?= =?us-ascii?Q?lJJEDzkJlxKIESWC/HC8gr8sYu0sIsLF/Jkh/NT/06ZkNrwBliU2kO87IoSL?= =?us-ascii?Q?k14LsnUI3RXdczQZOc6pRtC8kRk11RNJjiieD7z9H2Aty7p6AYQdJTp7Rwt0?= =?us-ascii?Q?42CNFqXYDNusPrFLKBjg+fD4rzzfPC8NJN1M63zl0qE5JuJX22ozzPrEr83q?= =?us-ascii?Q?cNUTfhPU4oebxdbHnlCgDYBjUH6vQzFzBrjd0g6+qKosnH6i4FtOc28tR3Et?= =?us-ascii?Q?+D5kGSbPgqaCYSLOMl+/iTeHFYCjfEVJjff+ZHHJbPpUCxGuaShex8fxCGm+?= =?us-ascii?Q?IclgX1vesYXAUADlykMxIKRQkU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Q?SdH2GTlNFw1XgYaqjM3b5Gy7?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5437c761-da94-4aca-165f-08d98cb005f4 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2021 12:09:49.5159 (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: zAD+kx/sTr6Tvf0Y71O07M0u5HYZzIKm2AgCGX16xH2cqI8Fsefd+0pHUtXbkOJQdr86+o0JYePs5mo2ogjoK6hsqvF304ZDDO1zkFoTAFo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1001MB2157 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10133 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 phishscore=0 bulkscore=0 malwarescore=0 adultscore=0 mlxscore=0 spamscore=0 mlxlogscore=881 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2109230001 definitions=main-2110110070 X-Proofpoint-GUID: DabQV6NOArK-mZL4Y4r9TjIY9kan0rwO X-Proofpoint-ORIG-GUID: DabQV6NOArK-mZL4Y4r9TjIY9kan0rwO Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org You didn't compile test the patch. On Sat, Oct 09, 2021 at 11:30:53AM +0530, Saurav Girepunje wrote: > if psta is NULL, function is returning with fail. On next if condition > again checking if psta is not a NULL. Remove multiple if condition check. > I don't think this is an accurate description of what the patch does. > Function is already using goto exit statement to exit.Replace multiple > return with goto exit statement. No. Do nothing labels only hurt readability and introduce "forgot to set the error code bugs." regards, dan carpenter