Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7143396ybi; Thu, 13 Jun 2019 10:16:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqywaSzvxcGP3IOy/6qpGHc0LQKMY2MOJpX6eouNehezihvwDRZS7RU75PNT4BWh9fJF0SDk X-Received: by 2002:a63:8841:: with SMTP id l62mr30029496pgd.246.1560446212381; Thu, 13 Jun 2019 10:16:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560446212; cv=none; d=google.com; s=arc-20160816; b=W8V+B/5lh4x89VRwKOtR4c0ADdwUrH88BkPJj90uQnclXVhZiikNjrvSwneq/CkPZ0 eH8qCn31HWmQdNLu5ifsaoBFKHunJss27F5BizULQ+diC0u/LJoXdCj2B4tvSivPnnxr WNAN1qUJXUnNmHNLsn+lahAj5iXADLeUb1tYU/rvLE4poGCUxMVKSapWLK9/qXAAxY69 RIUDl5IxDd2Rpq8QNPx2u7vnDEpZTdZYlCmK8OwonclSagq6Zy0LYl2DdcGGhD/DH6AC 7C7c9KzVYGEwD0dJwceIM1XWFmlkYIUyPpw4gLdMYNt+0U/IXrU+xIzSxcNEZCxZeIzD df4g== 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-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:to:from; bh=xLq1+mzp22zegSttq9NTN0Z5YGqvOVwmaT4EOgUakKA=; b=V8rZf0Spsswg5jxfVEDmpM1UUs54e7gNEttxhuMXtdbGlvYLVyiP9f9vQaYkwtlicR /x561CC9UWaJHsmYy1dv+ea6FtgoMqkuOEuh8sI2ZMTKo1II7XBSbe7oM/RihOdYq41W fzhRJMWim3TVLAzNvZQmOhtvAA5uwGNYoELmeaH1MTcG87DrXevpswm5DsgCa3HMqr48 HTmZ1BbmjF2dt+RnNhvuk6pYYb2F6CG8e36ei85SNpfP/UrCYc1Socj4m0MyG0kXKjdX ABxZo5ZE4ZEYqq6RQ7S1uutdQG96cPzGHv1/5M8zCcc/AWCxydPNoezyJ3QhfanaEtFL zv5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o7si266973pgi.74.2019.06.13.10.16.24; Thu, 13 Jun 2019 10:16:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728651AbfFMRQX (ORCPT + 99 others); Thu, 13 Jun 2019 13:16:23 -0400 Received: from mga05.intel.com ([192.55.52.43]:50481 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728592AbfFLViX (ORCPT ); Wed, 12 Jun 2019 17:38:23 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jun 2019 14:38:21 -0700 X-ExtLoop1: 1 Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by orsmga003.jf.intel.com with ESMTP; 12 Jun 2019 14:38:20 -0700 Received: from orsmsx115.amr.corp.intel.com (10.22.240.11) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 12 Jun 2019 14:38:20 -0700 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.232]) by ORSMSX115.amr.corp.intel.com ([169.254.4.229]) with mapi id 14.03.0415.000; Wed, 12 Jun 2019 14:38:20 -0700 From: "Gix, Brian" To: "linux-bluetooth@vger.kernel.org" , "Stotland, Inga" Subject: Re: [PATCH BlueZ 1/1] mesh: Remove redundant checks when adding a net key Thread-Topic: [PATCH BlueZ 1/1] mesh: Remove redundant checks when adding a net key Thread-Index: AQHVIKu9El0pujejoky/fQWC0wY06KaZAk0A Date: Wed, 12 Jun 2019 21:38:20 +0000 Message-ID: <1560375498.11349.0.camel@intel.com> References: <20190611231643.25165-1-inga.stotland@intel.com> In-Reply-To: <20190611231643.25165-1-inga.stotland@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.54.44] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org QXBwbGllZCB3aXRoIG1pbm9yIGNvbW1pdCBtZXNzYWdlIHR3ZWVrcw0KDQpPbiBUdWUsIDIwMTkt MDYtMTEgYXQgMTY6MTYgLTA3MDAsIEluZ2EgU3RvdGxhbmQgd3JvdGU6DQo+IFRoaXMgcGF0Y2gg Y2xlYW5zIHVwIHJlZHVuZGFudCBjaGVja3MgaW4gc2RkX2tleSgpIGFuZCBtZXNoX25ldF9zZXRf a2V5KCk6DQo+IG5vIG5lZWQgdG8gY2hlY2sgdGhlIHJlc3VsdCBvZiBsX3F1ZXVlX3B1c2hfdGFp bCgpIGFuZCBub3QgbmVlZCB0byBjaGVjaw0KPiBpZiBzdWJuZXQgaXMgdmFsaWQgYWZ0ZXIgaXQg d2FzIHN1Y2Nlc3NmdWxseSBjcmVhdGVkLg0KPiAtLS0NCj4gIG1lc2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