linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] mesh: Fix storing network retransmission in config
@ 2019-08-05  7:54 Michał Lowas-Rzechonek
  2019-08-06 16:56 ` Gix, Brian
  0 siblings, 1 reply; 2+ messages in thread
From: Michał Lowas-Rzechonek @ 2019-08-05  7:54 UTC (permalink / raw)
  To: linux-bluetooth

---
 mesh/mesh-config-json.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
index 177aaac7b..d49f5226a 100644
--- a/mesh/mesh-config-json.c
+++ b/mesh/mesh-config-json.c
@@ -1553,7 +1553,7 @@ bool mesh_config_write_net_transmit(struct mesh_config *cfg, uint8_t cnt,
 	jnode = cfg->jnode;
 
 	jretransmit = json_object_new_object();
-	if (jretransmit)
+	if (!jretransmit)
 		return false;
 
 	if (!write_int(jretransmit, "count", cnt))
-- 
2.19.1


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

* Re: [PATCH BlueZ] mesh: Fix storing network retransmission in config
  2019-08-05  7:54 [PATCH BlueZ] mesh: Fix storing network retransmission in config Michał Lowas-Rzechonek
@ 2019-08-06 16:56 ` Gix, Brian
  0 siblings, 0 replies; 2+ messages in thread
From: Gix, Brian @ 2019-08-06 16:56 UTC (permalink / raw)
  To: michal.lowas-rzechonek, linux-bluetooth

Applied, Thanks

On Mon, 2019-08-05 at 09:54 +0200, Michał Lowas-Rzechonek wrote:
> ---
>  mesh/mesh-config-json.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c
> index 177aaac7b..d49f5226a 100644
> --- a/mesh/mesh-config-json.c
> +++ b/mesh/mesh-config-json.c
> @@ -1553,7 +1553,7 @@ bool mesh_config_write_net_transmit(struct mesh_config *cfg, uint8_t cnt,
>  	jnode = cfg->jnode;
>  
>  	jretransmit = json_object_new_object();
> -	if (jretransmit)
> +	if (!jretransmit)
>  		return false;
>  
>  	if (!write_int(jretransmit, "count", cnt))

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

end of thread, other threads:[~2019-08-06 16:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-05  7:54 [PATCH BlueZ] mesh: Fix storing network retransmission in config Michał Lowas-Rzechonek
2019-08-06 16:56 ` Gix, Brian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).