From patchwork Fri Jan 24 23:52:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Gix X-Patchwork-Id: 197421 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80800C2D0CE for ; Fri, 24 Jan 2020 23:52:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6001C2072C for ; Fri, 24 Jan 2020 23:52:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729578AbgAXXwu (ORCPT ); Fri, 24 Jan 2020 18:52:50 -0500 Received: from mga11.intel.com ([192.55.52.93]:53121 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729236AbgAXXwu (ORCPT ); Fri, 24 Jan 2020 18:52:50 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Jan 2020 15:52:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,359,1574150400"; d="scan'208";a="230511859" Received: from bgi1-mobl2.amr.corp.intel.com ([10.251.17.203]) by orsmga006.jf.intel.com with ESMTP; 24 Jan 2020 15:52:48 -0800 From: Brian Gix To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, inga.stotland@intel.com Subject: [PATCH BlueZ 3/5] mesh: Remove unneeded Sequence Number increment Date: Fri, 24 Jan 2020 15:52:40 -0800 Message-Id: <20200124235242.21720-4-brian.gix@intel.com> X-Mailer: git-send-email 2.21.1 In-Reply-To: <20200124235242.21720-1-brian.gix@intel.com> References: <20200124235242.21720-1-brian.gix@intel.com> MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org --- mesh/net.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mesh/net.c b/mesh/net.c index 71ff2cea0..ff43176a3 100644 --- a/mesh/net.c +++ b/mesh/net.c @@ -3199,7 +3199,6 @@ bool mesh_net_app_send(struct mesh_net *net, bool frnd_cred, uint16_t src, (dst >= net->src_addr && dst <= net->last_addr)) { /* Adjust our seq_num for "virtual" delivery */ net->seq_num += seg_max; - mesh_net_next_seq_num(net); return true; }