Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1831362ybi; Thu, 4 Jul 2019 00:16:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSHDvw+iceBg04lyVXbfvzFVDkEQxPBxVIDE8M72oqAVEkxJL+tGcsKrwZkz3VqeXqoFDf X-Received: by 2002:a65:4786:: with SMTP id e6mr33357073pgs.448.1562224590176; Thu, 04 Jul 2019 00:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562224590; cv=none; d=google.com; s=arc-20160816; b=tFoPvs1VHsW4krdgfyAkSO7hbAvXSmHl/NGwhoeYYvBuin4XIAKrYPuWzNKH3LTpcP IyzYsMTUkwEqkOW3L0AQgqS3M8ehgApqfHrxO1gK2VBFbmMwdkjoSD4MXWMIZQqYCsvt 8XtdYd75tT0lvldK8VnfjhN8RyPLlY+wYCCjKFQEwQaVJNqZfrYQD20RNlnBXjmE0ckR J25291B2ecTJaKRvWWeLIxtE/yTMvBat3vookR0+uPdV4rRIPUQNBLGaH3PQIYnJhrw6 V0sBSlrjRYuQ1Mk2fetwcKAeo9Seepv86gmnB9ovwJo9AxL8PwCHPFmeLsv+DX5xmDuQ O72w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=6bMe1dChSN/xkbhurX09KYBFNKs+/IlAyrWEprNVj7I=; b=Yf6d/v98WuxdeX+zesrqBp4aP7aqisgsJg6FX/Do/RrLRjXQ1v/ocE1MNaQPai0wOx Mka6/A/kTAwzBzYzneppM4o1318XHv4MyJaCNdwOxtjF/efCODhP7+FVwuwyy2prvDpb DBTDrWwk8jb4qh4raf9Y9munaxJGQyOSiMwQesve8F/F6dy/sWcBWXQ/hmLjvdCeSPGN ElI0osjJN1zM/yvCmvNA8pUCpYhKssLuJ3b093/NSmXg/UyT+TZAd7J1n7EEn2R3vfci 2nJDGqxaLy0iB2ml5n16Lqod7geHtfkM3LUcNJVFPMn+ymCuTntD2SXBJJ6r6tsjGlXf WM8w== 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 32si4633385plb.86.2019.07.04.00.16.09; Thu, 04 Jul 2019 00:16:30 -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 S1726199AbfGDHPS (ORCPT + 99 others); Thu, 4 Jul 2019 03:15:18 -0400 Received: from mga11.intel.com ([192.55.52.93]:8107 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726087AbfGDHPS (ORCPT ); Thu, 4 Jul 2019 03:15:18 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Jul 2019 00:15:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,449,1557212400"; d="scan'208";a="339531364" Received: from ingas-nuc1.sea.intel.com ([10.254.86.21]) by orsmga005.jf.intel.com with ESMTP; 04 Jul 2019 00:15:17 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, Inga Stotland Subject: [PATCH BlueZ] mesh: Remove redundant initialization Date: Thu, 4 Jul 2019 00:15:16 -0700 Message-Id: <20190704071516.17736-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This fixes a case where a variable was initialized twice. --- mesh/cfgmod-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c index 634ac006b..bb78cead6 100644 --- a/mesh/cfgmod-server.c +++ b/mesh/cfgmod-server.c @@ -742,7 +742,7 @@ static bool cfg_srv_pkt(uint16_t src, uint32_t dst, uint8_t ttl, const void *user_data) { struct mesh_node *node = (struct mesh_node *) user_data; - struct mesh_net *net = node_get_net(node); + struct mesh_net *net; const uint8_t *pkt = data; struct timeval time_now; uint32_t opcode, tmp32; -- 2.21.0