From patchwork Wed Jul 20 16:03:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Singh X-Patchwork-Id: 12924284 X-Patchwork-Delegate: kvalo@adurom.com 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 D51F5C43334 for ; Wed, 20 Jul 2022 16:03:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232073AbiGTQDW (ORCPT ); Wed, 20 Jul 2022 12:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbiGTQDT (ORCPT ); Wed, 20 Jul 2022 12:03:19 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CC4F54050 for ; Wed, 20 Jul 2022 09:03:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1658332998; x=1689868998; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=agMHJUtS8wAPlgav5zk7QPhmFnWGX8CQUSKb6esfNBU=; b=lTGb5XQrAmkdI0EShk/q6wDltXWtO1sLClhv7+fpHhmRAG0JvZamfGkx eaSeeVEOOkGST96b1SCd9/0XkPSGvJx+Xr2XwhhvIDo72RQgYAMMA/Ocw aHSUzprfNIGmzKM003vQnFZN6Z2Ih1hlqlVAqWCBMbONQjQFDZm0l3HW+ yqvm6A0/E7ASBDbIMyT0EEpn+cW1X8tod7o+BPH+fh8CvrJE23vFlbj89 k16k7ky5jCwJh2U5Hv5AfU/Bf5MXbfDjiatcwf36NyqCjAESILM4odLfE qIr8abigYkXA96+RBtsOGdK44OoECpCH0czQQOcyAhGT1cA26atzl0boO w==; X-IronPort-AV: E=Sophos;i="5.92,286,1650956400"; d="scan'208";a="105374573" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 20 Jul 2022 09:03:17 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 20 Jul 2022 09:03:17 -0700 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17 via Frontend Transport; Wed, 20 Jul 2022 09:03:17 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hyb6bcfHRLrejIH3L5GQ6j01nBosUlWI8+5aPKJKreoxTgU36MN0JuNYZ01U5zm8yodSIYybHLGU//86ra/NU5WuXredIrKK0dnHNEzSMadR83ugJeBvLgRruTTGSNqzHUuXFZL5/9fUV3s3GB4G6YvzcKEbRrhorf+sq31Hd3nAzGHJQZ5jW1gJTOK1lWzBL3VWbLis8XzJC1qnS/r0teHKw7bv23MixYxtxDPwATINKifma36oeJY1GUkxafHlQnumoF0GhSJ0muOIoHOBPnKVoAefBLcaPkq0+hShX378LUtgCe+etRJYoRpju9ctUGENagf5wxjUtuxbCMSV5Q== 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=ftrMiV6VMVlwoMbZdE0HMC6S5ovsuJL42MQCigkBjOY=; b=fIqu9uOZ8P5TNJiYTBVm1e9LSZcxIZPiy+Vqd5qelLhglPO/q88xuyPk6nNrUTyaOF/RRXnZeefcnK8lRvQEeTcwBM2rTI80qv4FZ38e3emPMEGQ9SO34YxvGPqpwPY4uc+4HMzcE+19w4fKRNAkBALRA8ABxvusEfpBlYfHz3oQyIue/pyUAZfIzRao5WP1YRoUzQ53dM9z4ZsTIheoZSBLVVOK5fswgmVGP1SMi0I3mtXu/JMimwoZQIG8O99xMV3q/VZlAfPMuk9vYKmPzrN4FpKLz0qPPRV7d74G6f2fhoODyglu6Q7gmuVAZ52Av9NtJEuFKPVeJtIaLqA3+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ftrMiV6VMVlwoMbZdE0HMC6S5ovsuJL42MQCigkBjOY=; b=cm8gjLlnRlyNl7Xxpg+4oofG25+8eV4h53xROEOkXHcSk6XXa1sMXJIEg4xc4dmqFOOhnalS7qN0/KJ7O7ooec0hFxeIcvccJ1Zm/sVwopWIC8aHLzShitvahn3kYrWIBGpUhi/CCcZRLq8b2c6vWR6xF933o2/dHX2zYpuePwQ= Received: from PH0PR11MB5176.namprd11.prod.outlook.com (2603:10b6:510:3f::5) by MN2PR11MB4174.namprd11.prod.outlook.com (2603:10b6:208:154::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.12; Wed, 20 Jul 2022 16:03:04 +0000 Received: from PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0]) by PH0PR11MB5176.namprd11.prod.outlook.com ([fe80::812f:fd29:44fe:6cb0%5]) with mapi id 15.20.5438.023; Wed, 20 Jul 2022 16:03:04 +0000 From: To: CC: , , Subject: [PATCH 3/8] wifi: wilc1000: set correct value of 'close' variable in failure case Thread-Topic: [PATCH 3/8] wifi: wilc1000: set correct value of 'close' variable in failure case Thread-Index: AQHYnFIxs6iET20GYE28HgWm62p+Ow== Date: Wed, 20 Jul 2022 16:03:03 +0000 Message-ID: <20220720160302.231516-3-ajay.kathat@microchip.com> References: <20220720160302.231516-1-ajay.kathat@microchip.com> In-Reply-To: <20220720160302.231516-1-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.34.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microchip.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8be65622-e0df-42ab-1499-08da6a695431 x-ms-traffictypediagnostic: MN2PR11MB4174:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: D5jYS+/5o2R+jxgkn6teA8leR+hObRlyt+5G3Edn5O9JDeshU93BbThPb4mhhyzYpD8pwxF0d3SlLZh0ndR/Z0BBEkJgmEfnTw0kX5XANLGxZARAOsdD/klguAXHsJL5YSyLwW7fBQITHDw6FIFOPwylMgpFssgnSFHKjO6bxPQrPvqHhKUzE6I0weIG6SxRsb57M3Xo02OeoR50VmYbDezP+8pYy98XnXoB63Wxwpf2JWe56meeHFDDahcOws+uJd8to2Ed5ytkNGWA7r0gjD8HcEzd8tgatY5Diwpk6u+Itb/gMyuJnwfgmUOnu1SZJaMAKJaqND26MwTYB6XBOuaCF/yT5JiE0U1XFda6jTKUjN+tz2pjOmzuYOCH7hTNfShTxCbe2nKlkl0H4GypoRxJKsIgzyo9fl9MFCN5oLqPE9V4KenFP2QgSAqUtct8LoHVA04nOLJkNfnmuJmw9XlWHFvYhT0AOQkb25H1SkkcYbCrD0MNgxBK9ptxIVF41deMPoGfkiJHrkBZJHXpwzsKOUcSCW4uxQlYbKpHxMSPjIySIoPAaYMEq//G0UIdw/sIfMskIlZe/ETZxAxuc98wgpSa+GK8TxGcLt9P+JIJrCTuT6tb2dm6RbiIF1f2yDgRlC9YBga6TJ8pzSLM1lAgc9jObuti3YyG3UxgCRLoV1yKFrQyO8LNzxAPt7yJZxF0ebx9Da5doLfWuIrkBK4qcHc21GksaoNaCHGj2sLyBDIRhuTibKPKH1qmGa21e+R6qdrvTaoOBu3KBNc5ewLtFkOfanlukMUkPVPFnL9Ojf3kFB+rezAxNl7kwt5K x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5176.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(39860400002)(346002)(396003)(136003)(366004)(376002)(2616005)(64756008)(86362001)(6486002)(122000001)(8936002)(1076003)(2906002)(107886003)(5660300002)(41300700001)(26005)(38070700005)(478600001)(6506007)(4326008)(186003)(6512007)(71200400001)(4744005)(76116006)(6916009)(54906003)(36756003)(66446008)(316002)(66476007)(66556008)(8676002)(91956017)(83380400001)(66946007)(38100700002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?1MKexBTT8ax3PYkgKaXGLEI?= =?iso-8859-1?q?PFG8qLyAjGQhv0lqIay17Sfy6z1135GnBjYS7Jpo2p+oO7ETFxfgVfvhy+fJ?= =?iso-8859-1?q?4whAB6+EQ+bba8zGFh+NgqAaoi974FjsofCNbaRXLiJeoJxC1YYiKkPqrAE7?= =?iso-8859-1?q?3ESPXMMqoxQcdurP+UTHiknI1KOdGTAnGhtw+kOBBNe+6bXqmT+JZoF38yLi?= =?iso-8859-1?q?CDVWFeRn7XIYisF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ya94pcJhK3Zj1woFlmF?= =?iso-8859-1?q?FHb85Iu8o4M5Aa5WpneV0DDe1yeVgvjo94hm/9p6og19SoMk1m1HbMcHV564?= =?iso-8859-1?q?QfFgZZtbpgh/JvYZxTmyRfO7lpiWo5Y9fW8DYQsD81aiBrIM5qbLPzdY3hPS?= =?iso-8859-1?q?AhicIo7dE792+BpYTPgVAINk3VMt1WdBhRBpb7jixO/I4AUuGFzoCY4wjK/f?= =?iso-8859-1?q?SckPdm52HY8OCaty74+8NDIcLwfo959NFr7AzWP8IMKbh3JlHQGSBOCjDlAP?= =?iso-8859-1?q?scSMr84oobmRXc3STvVVzJH/mtrjyEJ7mAo/yxEkz1OBQ9HeVJJWtMzFw9qq?= =?iso-8859-1?q?rwKE4U8BC/9cECli+NyudZESTbo/zEstRVAqe8UxAVzMv7tqGI7Taz8/C34c?= =?iso-8859-1?q?t2rSaPNwl356S5Sz2XNyXrRbbgrbZKCV3bQQ/m5fQz9y5newlZ18QsqqgH8W?= =?iso-8859-1?q?b35PFfcxVQgvxf2Fs/SrS1CA3iKoN3UPTPOC9VJ+jgaoZein+EpUZpp1TZ5e?= =?iso-8859-1?q?h0zprZ5hi6IEGax/cZwafZMGwf0L1+Z3BVisCgZPHU+xyi6Yz7fkwk0RiPL0?= =?iso-8859-1?q?=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5176.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8be65622-e0df-42ab-1499-08da6a695431 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jul 2022 16:03:03.7648 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: tuYSNYvzLGlyuLEFV2y56tu35AT0HNGGrC7HrWvCQzBrJA3Emtzn4Ovp2kzoteoMDMX3uc9l4dHhI7KeT3zp6DYFc1XDaA6nqR67wU8IQ/k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4174 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Ajay Singh Set 'close' variable to '1' to indicate closing operation when initialisation fails during wlan_initialize_threads() call. Signed-off-by: Ajay Singh --- drivers/net/wireless/microchip/wilc1000/netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/microchip/wilc1000/netdev.c b/drivers/net/wireless/microchip/wilc1000/netdev.c index fcc4e61592ee..7879446f282f 100644 --- a/drivers/net/wireless/microchip/wilc1000/netdev.c +++ b/drivers/net/wireless/microchip/wilc1000/netdev.c @@ -472,7 +472,7 @@ static int wlan_initialize_threads(struct net_device *dev) "%s-tx", dev->name); if (IS_ERR(wilc->txq_thread)) { netdev_err(dev, "couldn't create TXQ thread\n"); - wilc->close = 0; + wilc->close = 1; return PTR_ERR(wilc->txq_thread); } wait_for_completion(&wilc->txq_thread_started);