Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp758732ybd; Wed, 26 Jun 2019 05:41:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYnm16WpRNdpIvGIkfdFT1jJIMmsPWeBqP6bxLaL/+RJRXAwEgo2f7WRH/gzFyNg6qwHl4 X-Received: by 2002:a17:90a:cf0d:: with SMTP id h13mr4501715pju.63.1561552898594; Wed, 26 Jun 2019 05:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561552898; cv=none; d=google.com; s=arc-20160816; b=yGdmXcUHx6Mux62oPvmApJdOFc5IxvaGAGkgQ5WE8HAw/5w/0UykLlC4kFFsw6J0yX rkT8hwjKVgzaH7G1dAePmT+g5kNgwXBQTl1Zp9SjzV3ZLMmP7TsWCoF4iFh1bB6VQO4E Z8Fx04x6/Rk6OU7cbzqq/Hk1YshJ9qweNZ7SvUwDVBXwOwPKiIdWkiSsSSD8e/ixQiAD HPeE/cA6Kd+sRwYErMq+OmvWm/V6WysrzUhAI/A6Mz9SaUbNHRDTAZaP7ir/x6yY+Lfi r9BwxuKIH4/sZJE0dXkzNfbXv1NcEAVo02M/m96cYyWCW0UB10W5v2feJjJ32UMyx0X/ 5vDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Yy33CSw+7u77x+NQDpbjg1syGyTJ17R6D5wqBo+efn8=; b=XTDBe4KKgavnIrk/QJdHcPiDZicLxZnKwytpB2g9Kqay3bSWZBHX3RABA2nLpFjUEx n7N/IwGJTe8/diAuOEnyqqWhmqQjKAeq76C/HEtSQFsjyqnBgyBgk6MaUaA/gsa3itpa pKOm7W5aNtYlnLSaDVbITY4SC7TkHuYLTz9y6Z49muAt3A9989L5aQsb7moA75z1b9j0 EHD1q4NfwbCno+P2uXn3v0EqAKuDWlBCHSmoL+hXdKj2Imn4hBb8heYd3Y5uPw8Vymi5 iP4f3is57y76jZ0x/oOKjlGwq67ymKYTK+Lko6yM43ubM4bCa1+6V0ww1G3j3ZBlo4n0 m6Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=eZZAu7EN; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si3260818plg.315.2019.06.26.05.41.18; Wed, 26 Jun 2019 05:41:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@microchiptechnology.onmicrosoft.com header.s=selector1-microchiptechnology-onmicrosoft-com header.b=eZZAu7EN; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727492AbfFZMlC (ORCPT + 99 others); Wed, 26 Jun 2019 08:41:02 -0400 Received: from esa1.microchip.iphmx.com ([68.232.147.91]:54780 "EHLO esa1.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727417AbfFZMlC (ORCPT ); Wed, 26 Jun 2019 08:41:02 -0400 Received-SPF: Pass (esa1.microchip.iphmx.com: domain of Ajay.Kathat@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Ajay.Kathat@microchip.com"; x-sender="Ajay.Kathat@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa1.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa1.microchip.iphmx.com; envelope-from="Ajay.Kathat@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa1.microchip.iphmx.com; spf=Pass smtp.mailfrom=Ajay.Kathat@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dkim=pass (signature verified) header.i=@microchiptechnology.onmicrosoft.com; dmarc=pass (p=none dis=none) d=microchip.com X-IronPort-AV: E=Sophos;i="5.63,419,1557212400"; d="scan'208";a="40484320" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 Jun 2019 05:41:00 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Wed, 26 Jun 2019 05:40:58 -0700 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Wed, 26 Jun 2019 05:40:58 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Yy33CSw+7u77x+NQDpbjg1syGyTJ17R6D5wqBo+efn8=; b=eZZAu7ENPhUy3wyfKTQYUAVcb1G5s0OVaIU1hk5I0sQWEqfuURnqGQE8TVQ/kfXKvXHSLTbIR0CLg8HuBjk020MAVEIfBbHRhOjEDsMW8nXylZ0/VCyn9iMObP8yu7Uq7seXZ3OLUcze2oXNK1AquT6lU+vK1jzVvewTzy9QHdw= Received: from BN6PR11MB3985.namprd11.prod.outlook.com (10.255.129.78) by BN6PR11MB3987.namprd11.prod.outlook.com (10.255.128.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.16; Wed, 26 Jun 2019 12:40:58 +0000 Received: from BN6PR11MB3985.namprd11.prod.outlook.com ([fe80::49ee:ab78:412:48ac]) by BN6PR11MB3985.namprd11.prod.outlook.com ([fe80::49ee:ab78:412:48ac%5]) with mapi id 15.20.2008.017; Wed, 26 Jun 2019 12:40:58 +0000 From: To: CC: , , , , Subject: [PATCH 5/8] staging: wilc1000: remove unnecessary loop to traverse vif interfaces Thread-Topic: [PATCH 5/8] staging: wilc1000: remove unnecessary loop to traverse vif interfaces Thread-Index: AQHVLBxnrn5pJlgqbEqjXpIzd+Cikw== Date: Wed, 26 Jun 2019 12:40:58 +0000 Message-ID: <1561552810-8933-6-git-send-email-ajay.kathat@microchip.com> References: <1561552810-8933-1-git-send-email-ajay.kathat@microchip.com> In-Reply-To: <1561552810-8933-1-git-send-email-ajay.kathat@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR0101CA0066.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::28) To BN6PR11MB3985.namprd11.prod.outlook.com (2603:10b6:405:7b::14) x-mailer: git-send-email 2.7.4 x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [183.82.16.72] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2a30a280-cfd6-459b-6e09-08d6fa3389b2 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);SRVR:BN6PR11MB3987; x-ms-traffictypediagnostic: BN6PR11MB3987: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-forefront-prvs: 00808B16F3 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(39860400002)(366004)(376002)(136003)(396003)(189003)(199004)(3846002)(11346002)(305945005)(476003)(2616005)(5660300002)(99286004)(54906003)(25786009)(8676002)(486006)(81156014)(81166006)(8936002)(66066001)(7736002)(66476007)(66556008)(64756008)(66446008)(6116002)(66946007)(6486002)(50226002)(446003)(107886003)(68736007)(52116002)(73956011)(256004)(4326008)(6436002)(316002)(478600001)(386003)(72206003)(53936002)(2906002)(102836004)(6512007)(2501003)(6916009)(76176011)(86362001)(186003)(6506007)(36756003)(71190400001)(78486014)(14454004)(26005)(2351001)(71200400001)(5640700003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR11MB3987;H:BN6PR11MB3985.namprd11.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 9v+uceWvaTbKvrcp5//6/OGtGuFSh31+dY6hpLkmwdsMLXR4XwszIlwfBLIcVQqN9V0N2LxO4BWBMedq2iDa8cmAKDdSS8WV9mPrh7i4kwXM0yJf2FrLAIqA8uYIp4leMmh4+0u/98GeOb24/RvBmz82zszTpTBPokeBrWoudRvsq09ioRCzEK5aAD9IXqIRdDroYtmc5HDTAWp0Zf7PBF4W0fn4ee2iR6568KM11kFW8fhl6fI72LI382O+kGH4Ig45YdizuzmbBoHkj9/1BgY4YpUZCFMdk0aBkGyvXHlf4rfDS5CMimbN+rFDkNV4rZTyM3WMTpMWRTLaQ5AtS79OzoHfiQlvtonJXC0MLKHTIdyW4H6L9lAH0sU3zDizk16fbAt2BYl3oJGCnr5aS7r0ak1oVZhY5MP9K4GkSgo= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 2a30a280-cfd6-459b-6e09-08d6fa3389b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jun 2019 12:40:58.3260 (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: ajay.kathat@microchip.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB3987 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org RnJvbTogQWpheSBTaW5naCA8YWpheS5rYXRoYXRAbWljcm9jaGlwLmNvbT4NCg0KQ2xlYW51cCBw YXRjaCB0byBhdm9pZCBsb29wIHRvIHRyYXZlcnNlIHRoZSBpbnRlcmZhY2VzIGluc3RlYWQgbWFr ZSB1c2UNCm9mIHZpZiByZWNlaXZlZCBmcm9tIG5ldF9kZXZpY2UgcHJpdiBkYXRhLg0KDQpTaWdu ZWQtb2ZmLWJ5OiBBamF5IFNpbmdoIDxhamF5LmthdGhhdEBtaWNyb2NoaXAuY29tPg0KLS0tDQog ZHJpdmVycy9zdGFnaW5nL3dpbGMxMDAwL2hvc3RfaW50ZXJmYWNlLmMgfCAgNyArLS0tLS0tDQog ZHJpdmVycy9zdGFnaW5nL3dpbGMxMDAwL3dpbGNfbmV0ZGV2LmMgICAgfCAxNiArKysrKy0tLS0t LS0tLS0tDQogMiBmaWxlcyBjaGFuZ2VkLCA2IGluc2VydGlvbnMoKyksIDE3IGRlbGV0aW9ucygt KQ0KDQpkaWZmIC0tZ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