From patchwork Fri Jul 22 06:38:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 593160 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 900A3CCA489 for ; Fri, 22 Jul 2022 06:39:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234288AbiGVGjL (ORCPT ); Fri, 22 Jul 2022 02:39:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234235AbiGVGjK (ORCPT ); Fri, 22 Jul 2022 02:39:10 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79A7A15A3B; Thu, 21 Jul 2022 23:39:09 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26M6StTv024613; Fri, 22 Jul 2022 06:38:54 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : content-type : mime-version; s=corp-2022-7-12; bh=uCIN/8XaJgi6e3IbwBUCecPlvzCWF1lGoIxOTMtCieI=; b=txEWToUJl/NB0cWsMIrnM5widT6PO33/EAqUvcDAuLV0TfXmUPyl0HIcETnMladVIy++ 5hVKSkonHlMcvRXWVlq41YC2qGvWWcOWY37W7UBBy9mCSN1C5NVJJ4ZbUeYmEVlEKhbf LLbLDtUl5BJVvpmDBT3fPNCnqAw33GQw6jQJs/zwMAmaGXL3Hbgtq+VWchC0xYqYIhzZ ccSRjHwzhUE04Eea6pFomTsWcbNfEjAptyVolZYsZGEipz7bZoymLIaA0YBbgMbv95rq 8Jom5Kg+j80JPtUkVnzxJUCOUkQcrpbgiezszqqdTKcXlCr/KWy21LE/ho9GgmLGmBod /Q== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3hbkrce5px-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Jul 2022 06:38:54 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 26M4dTi0022155; Fri, 22 Jul 2022 06:38:53 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2168.outbound.protection.outlook.com [104.47.58.168]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3hc1huqpax-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 22 Jul 2022 06:38:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ffMusE1D+irzC3cejrcNknrUMi9Eow2cxsKVvCuQmBuecHCZVVV2LHyPa8PEmnCwgYs4zRjUlVn2VnCOfNQyYJpajXGpWDkEevyd7d1aajGWCTmmm4206Ak1td4KZ/DdONpUsCaTSjNoZgTMTgQ6Wp1k7Yj7NopI7UuM/rXAD0Z/GjB2RVyiWd5Ghm5yjKtWpW4mXKt6NlQQ+sUuP5K9Nf7soFA75XyFk2dN7uDQhFkf/9b5gZdcyaMgWpmwNEkm7lYqx8mvjbRBxNV1vjHO2gVRdnPHDWXhQpc4lvmlnB+en+cpS/gKj2/L3hFlDpBDa0dwxXPCSnsdNDh60jPCTg== 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=uCIN/8XaJgi6e3IbwBUCecPlvzCWF1lGoIxOTMtCieI=; b=adhJI+g4KzgUwvzHy7cF12mnlzAI6CLcdR0HIlX062wuk2jd4oknH2ZzcurtuQEvjQ6kjefe1lH6T9Tw74JwvLFsTObMufvZiEfHUTO8gS12H2vGW2Wi3YpL4aLRI1mBsp0ivVUvpcRAozrGCEj+Rdk2Ndyu/CD8SPmgleB+4DiYfGmgaaV/uRLW+cAdvXmlo+KHExQhUgELJwli/cuoGsLXxPSv9dDb1V/+FcuKcmpnX/Nhy80C5Yii6hbHf/L+auxKyXH8AHQop05IqOzbKffS6sFG0vE63HavRzH2LOn+yxEzu6Ya0F91K7NMqcDBTVbYYkGpXpu6b5x/bq7CYw== 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=uCIN/8XaJgi6e3IbwBUCecPlvzCWF1lGoIxOTMtCieI=; b=PN9/uMfqayNVQKJc1CwoiBzRx4sJPyFtaGvUmDnwNVFxCeiA9sf71EGp19ZaNm2BP0bYEvEWnJ4Fdji8UoYmJb3lTl4kZVw2lqVjbP/H8AWBtzn+U1Xwym3MgIrCYDeekPdp6zBCWLb1jPQFA67o6y/GTzQX1poE0RfZzx5uhyU= Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by IA1PR10MB6196.namprd10.prod.outlook.com (2603:10b6:208:3a4::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.18; Fri, 22 Jul 2022 06:38:51 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::24dc:9f9a:c139:5c97]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::24dc:9f9a:c139:5c97%4]) with mapi id 15.20.5458.018; Fri, 22 Jul 2022 06:38:51 +0000 Date: Fri, 22 Jul 2022 09:38:40 +0300 From: Dan Carpenter To: Felix Fietkau Cc: Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Kalle Valo , Matthias Brugger , Deren Wu , Kai-Heng Feng , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, kernel-janitors@vger.kernel.org Subject: [PATCH] mt76: mt7921: delete stray if statement Message-ID: Content-Disposition: inline X-Mailer: git-send-email haha only kidding X-ClientProxiedBy: ZR0P278CA0120.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:20::17) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ffaf0a6a-b72a-44e2-358e-08da6bacd71e X-MS-TrafficTypeDiagnostic: IA1PR10MB6196:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lHyA2K8DPcLFVgBTOa4bne3m8xe5een5uzaCt+upubcFU5IrApHfPPoE/cviaEpvsF00pusu2LrlOE33B03B2pG5qomVJCemNuI//o8EqsvcU+FsyC/pAbYM3PppqkAKgcwUNwNCDNLvT4ipKD23/NAtG4Qb/NJWBltQNUinKTr2L2RoV5B7jNPT7hyJikwtkmi+4pyFJQmljCTikVXi+psVCqMYj5oHaAn8vYkmmK0Nju1aTBp3mNJXbJUmlaCfNn+ctBzIukbewdE5Wco5xZCwjLg8N9ANWFxtKg0qy0mPTjxO7G4L1ZcN0KRTnpCrNJbSfZ2//mW+O07rLq0fvsvBYKId8DlkaKwZ0z/Aaee0BEvpXr3BGoOqAv6Nkeu+GHK3uPwi/4pSZRmT5oY5LEBXdosS2ovLw/VDx2y3mjqZoiDJAIz8WSk5yv+SxypidZiM3063KstihUXwFT1RzIz6RQJEbP6iGdygEXpHOxyykivduQhxX244locqE7BoR9s6NEX4HLExHIKXabqX62bcZEqEfoVyjWCA2qBCxpoAgyd/AZ1tnirDE9ppIPqYwZCNDujKCzB9tAsaBs05VK2skmmvMP6I2gcYaxsEV9ANaYM56O18RzMV3UiXFfIkZMN+jnn4V0mBq4A456nwBYrxZIMmI2gxIJbES57/43gy/jPKcKiV1TNwnKFXT7dxgr7OiqWNldeWd3tQYwJ0YkIJ7QmKINKx7BmDtIujcmU6WgLyhvIdTGNx4C3Zx1CyULS2A56RgwXi03aJyWBh4g9jCfDB5b3l79LDpuRYc5E= 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:(13230016)(7916004)(396003)(366004)(376002)(136003)(346002)(39860400002)(8676002)(4326008)(66946007)(33716001)(8936002)(7416002)(4744005)(66476007)(66556008)(44832011)(9686003)(5660300002)(6506007)(38350700002)(2906002)(38100700002)(6916009)(478600001)(26005)(6486002)(41300700001)(83380400001)(86362001)(54906003)(316002)(6666004)(186003)(52116002)(6512007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EXZQLVVqDFPZU8zcnRT8SBiLmCptC8RTqo7CNu0f8cCiUdBrs1BNrkB6NPVcq3FB8sUYdf5P9Pa9I57vLwRq8LB0KtOk5nRiQ39Q5VilkNKBR2OiIDYM7AsvVvir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ORTQC889ooEWkSfLJHBZSc8g6heeZPGygsR6ThnbbEWc1xYT4LoNspSxa/KzBdrQkRAfpJBGVZG9/Dwbofn/j0gbseYqmit4RapTOxsYwtJ0v+QQWgt1YvzINEJaACWgxDSOmye1FjlAj8z6i7PmXEE095NGSgsvV9iyJCI5HdQPvH13xAF7ohmx3UmodZmxqt2+dDMgRPDS1HYkZUEO+cw8u7IIIPiz5YdqBVZCLF3FqueX2Z8nKGwk0zefOfTbuiz0l0qBFH4WuMacsmcqLmAKUJtF3kvRMWcN6zFmUV9fhV+ZtewEYZBAJmGSfu+mYzoA6U8XZ26+UiP2LGhLqM+lqOY91RxCQxEtbBGIk8i7K6SolsKj4Iwa4KbN7+NgUig1DRBKY4RFsAtZtgFfAg/kAmqvm0MRr9cg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ffaf0a6a-b72a-44e2-358e-08da6bacd71e X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2022 06:38:51.6630 (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: +oS08ofrtdNutC3mtk6qIw4J7Yfhls7EPn83+yz0Gb1NZ2Bpo0VOA5tuzxCdjPY9jPmlgWHfsvBzvQvF/FSoq9qPQcW8GRdxxduFgxy/A2E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB6196 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-21_28,2022-07-21_02,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 malwarescore=0 mlxscore=0 phishscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2206140000 definitions=main-2207220026 X-Proofpoint-GUID: iP9BJnJQUwSJW2cyKkc_t9GvIHMaOZZs X-Proofpoint-ORIG-GUID: iP9BJnJQUwSJW2cyKkc_t9GvIHMaOZZs Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This if statement is never true. It was supposed to have been deleted as part of commit 454b768f9ba6 ("mt76: mt7921: Let PCI core handle power state and use pm_sleep_ptr()") but was missed. Signed-off-by: Dan Carpenter --- drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c index ea3069d18c35..f72379d4f31b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c @@ -409,9 +409,6 @@ static int mt7921_pci_suspend(struct device *device) if (err) goto restore_napi; - if (err) - goto restore_napi; - return 0; restore_napi: