Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3706438ybl; Mon, 12 Aug 2019 05:09:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFwxEWPaIl/41QXXHeoZtSYJHM9vKli+3qHKwf8dPcOyvyVvL3zZdMqbG/2jdz+m68XtYP X-Received: by 2002:a17:90a:bc43:: with SMTP id t3mr546924pjv.108.1565611745332; Mon, 12 Aug 2019 05:09:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565611745; cv=none; d=google.com; s=arc-20160816; b=RRyqHVTjGYHrWvzzRWHlJgKClDWNwpAfhNx86FhymIUDknMOuWH99Q2FbRMJF3NsQv 1kuJOnuzX/IlITvGmav56Ip3mAKrXunjjPEgrL/6602m8PUm23k9qPnFnAHqwgUFB+HA h6KVJzfsAOywEVkobXPuF8tJ4FAeCbcApInT3iDUn/xRJzvDEhJVjjI5RyxPKDXvoHby ptYckBhORczM5/HYf6ZgMkXkQz+yNINfl10vk6FNTPiVuhE8g+vhMlMBIQJ2HyViSTzZ Hit3X/hgNsjHYcd0+s8SNiD45A5t/9i8kMp6kH5dtH3WCGEw0PK3TfyA6NR/Teq7rsBf /ojw== 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:to:from:dkim-signature; bh=7gIRMi3bptQpoByiRCRWQUNUOAZQICc2FZLHQ6Aw4Ms=; b=x4YevXIncs8Qd/dnNOUItCZl9eoOXsFCiAz8M4/TSwzECYsZY/hrTyqlK82V7cjd7w yGnaNdOG28Bn9Ey08Zen4pzWqfLZRfh5WP1GgdG8eK3/CbIdhYaCWBBhw8GqjBIBahlO ejDvnHcUuVHZp+DY6HgXbZ3HAyMhjSYhorRQiPEg+Nfy1HNNHCbBQxv35dmVGn9rM6To ZGiMoxpsIiYASZLpYXf+XP4Xui2/Z9TmfUgjd2o0o463RRS+bU4dOnesZ6OdQTC7fyI1 MMHDz21L64loAVkVOV4U9nBUFNuUJ4apNOviejaDnU5nciRHEojdm2KUBdk7C4GqH0Ex 3H0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=KaAMOBXb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si66835117pgm.43.2019.08.12.05.08.39; Mon, 12 Aug 2019 05:09:05 -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; dkim=pass header.i=@silvair-com.20150623.gappssmtp.com header.s=20150623 header.b=KaAMOBXb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728218AbfHLMHG (ORCPT + 99 others); Mon, 12 Aug 2019 08:07:06 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38449 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728239AbfHLMHG (ORCPT ); Mon, 12 Aug 2019 08:07:06 -0400 Received: by mail-wm1-f68.google.com with SMTP id m125so7481517wmm.3 for ; Mon, 12 Aug 2019 05:07:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silvair-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=7gIRMi3bptQpoByiRCRWQUNUOAZQICc2FZLHQ6Aw4Ms=; b=KaAMOBXbzlPupkH9CJbZWG1bTBAAAURBSfZUKzaUYP0qW/S0smwtJK3NS3xZ/ZMPg6 Cl6OBXuG8DwAe+Vf3R3pTXoBZaCNcnguBAEUrU02HzRaLPQLv+jcd6Gw+hHIVFvwNi9B ECgAiw36U6PcmXMHtNi41c/gmq2cX3t6WOyzzACBsmQSe8iVh1oSSB5b3irIcNDMB0oH NHZQ0E3Bl4N7C/LqehgQgrzvFI6CfkSXDFwOey//x0WaTmbmEdcepbeSc2gbsxMrKfZJ HwkwupXCnOpk++X4v2Virqg4PtS4RGyPo7GEcUK72lxo9kLoGzB7VtBXPMbbNXOF4hds t8Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=7gIRMi3bptQpoByiRCRWQUNUOAZQICc2FZLHQ6Aw4Ms=; b=rz5XMAzcBSQ76tOu5us87qopjctP3EzlcDM1oyu00CHcHAb5XSf5a+acmbxq5cUcx4 0yTj3N0YdiZ5WIJ9O/vWP3L5qY+qYi2tt9TP+/9apu0QQr0Sja2SlHapLFQBdInFg/A5 yk9gPBgkpK6mVtdQLZ4YUK05DjHk30Nl/OXhZtSm/zB4MEJRDedD5jIQMBRcvJOaxH+G Tx+jpWamhJIcL3LfU+V/yahJLdz+erigvYyt7u1lHQctYDM17h4g7v2A1OSlEefoxpj3 QNpq/Q4Q3pdSava8807xnDPiJLCdCHIjxQVfW9eiVKa+/w37uFDq2NLMRSNLmbUvss2z XfUw== X-Gm-Message-State: APjAAAXo68xez+9zXLB3VMrbUueSeQESie2noXvxqnI0bPnzSRo3yhJT 1GJLakDZLKnD+5bJ26dcRESXULWqaLTWXw== X-Received: by 2002:a7b:c157:: with SMTP id z23mr7637907wmi.104.1565611624080; Mon, 12 Aug 2019 05:07:04 -0700 (PDT) Received: from localhost.localdomain ([217.153.94.18]) by smtp.gmail.com with ESMTPSA id x20sm231717805wrg.10.2019.08.12.05.07.02 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 12 Aug 2019 05:07:03 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Gajda?= To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ] mesh: Remove double initialisation and fix typo in log Date: Mon, 12 Aug 2019 14:06:56 +0200 Message-Id: <20190812120656.29494-1-rafal.gajda@silvair.com> X-Mailer: git-send-email 2.22.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 --- mesh/node.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mesh/node.c b/mesh/node.c index e7e58d9a7..f8b1099e9 100644 --- a/mesh/node.c +++ b/mesh/node.c @@ -475,7 +475,6 @@ static bool init_from_storage(struct mesh_config_node *db_node, node->lpn = db_node->modes.lpn; node->proxy = db_node->modes.proxy; - node->lpn = db_node->modes.lpn; node->friend = db_node->modes.friend; node->relay.mode = db_node->modes.relay.state; node->relay.cnt = db_node->modes.relay.cnt; @@ -483,7 +482,7 @@ static bool init_from_storage(struct mesh_config_node *db_node, node->beacon = db_node->modes.beacon; l_debug("relay %2.2x, proxy %2.2x, lpn %2.2x, friend %2.2x", - node->relay.mode, node->proxy, node->friend, node->lpn); + node->relay.mode, node->proxy, node->lpn, node->friend); node->ttl = db_node->ttl; node->seq_number = db_node->seq_number; -- 2.22.0