Linux-Bluetooth Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH BlueZ] mesh: Remove double initialisation and fix typo in log
@ 2019-08-12 12:06 Rafał Gajda
  2019-08-13 21:25 ` Gix, Brian
  0 siblings, 1 reply; 2+ messages in thread
From: Rafał Gajda @ 2019-08-12 12:06 UTC (permalink / raw)
  To: linux-bluetooth

---
 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [PATCH BlueZ] mesh: Remove double initialisation and fix typo in log
  2019-08-12 12:06 [PATCH BlueZ] mesh: Remove double initialisation and fix typo in log Rafał Gajda
@ 2019-08-13 21:25 ` Gix, Brian
  0 siblings, 0 replies; 2+ messages in thread
From: Gix, Brian @ 2019-08-13 21:25 UTC (permalink / raw)
  To: Rafal Gajda, linux-bluetooth

Your two patches applied.... Thanks

> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Rafal Gajda
> Sent: Monday, August 12, 2019 5:07 AM
> To: linux-bluetooth@vger.kernel.org
> Subject: [PATCH BlueZ] mesh: Remove double initialisation and fix typo in log
> 
> ---
>  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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-12 12:06 [PATCH BlueZ] mesh: Remove double initialisation and fix typo in log Rafał Gajda
2019-08-13 21:25 ` Gix, Brian

Linux-Bluetooth Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-bluetooth/0 linux-bluetooth/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-bluetooth linux-bluetooth/ https://lore.kernel.org/linux-bluetooth \
		linux-bluetooth@vger.kernel.org linux-bluetooth@archiver.kernel.org
	public-inbox-index linux-bluetooth


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-bluetooth


AGPL code for this site: git clone https://public-inbox.org/ public-inbox