2019-02-02 06:49:38

by Stotland, Inga

[permalink] [raw]
Subject: [PATCH BlueZ] mesh: Remove unnecessary variable initialization

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

diff --git a/mesh/mesh.c b/mesh/mesh.c
index 881b6ed73..2c45c0a87 100644
--- a/mesh/mesh.c
+++ b/mesh/mesh.c
@@ -665,7 +665,7 @@ static struct l_dbus_message *attach_call(struct l_dbus *dbus,
struct l_dbus_message *msg,
void *user_data)
{
- uint64_t token = 1;
+ uint64_t token;
const char *app_path, *sender;
struct attach_data *pending;

--
2.17.2



2019-02-04 20:10:37

by Gix, Brian

[permalink] [raw]
Subject: Re: [PATCH BlueZ] mesh: Remove unnecessary variable initialization


Applied

On Fri, 2019-02-01 at 22:49 -0800, Inga Stotland wrote:
> ---
> mesh/mesh.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mesh/mesh.c b/mesh/mesh.c
> index 881b6ed73..2c45c0a87 100644
> --- a/mesh/mesh.c
> +++ b/mesh/mesh.c
> @@ -665,7 +665,7 @@ static struct l_dbus_message *attach_call(struct l_dbus *dbus,
> struct l_dbus_message *msg,
> void *user_data)
> {
> - uint64_t token = 1;
> + uint64_t token;
> const char *app_path, *sender;
> struct attach_data *pending;
>