From 9ae295b17a610575195ad55f56a48a90c5933bbe Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Wed, 7 Jan 2015 17:50:28 +0100 Subject: [PATCH] names: fix uninitialized return value A recent commit dropped the initialization of 'ret' so now it is returned uninitialized. Fix this! The commit in question is: commit de18809ec40380e0d4681141281555f7df35b303 Author: Daniel Mack Date: Wed Jan 7 15:48:54 2015 +0100 names: ignore return value of kdbus_notify_name_change Signed-off-by: David Herrmann --- names.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/names.c b/names.c index be51911..257c6cb 100644 --- a/names.c +++ b/names.c @@ -153,7 +153,7 @@ static int kdbus_name_replace_owner(struct kdbus_name_entry *e, struct kdbus_conn *conn, u64 flags) { struct kdbus_conn *conn_old = kdbus_conn_ref(e->conn); - int ret; + int ret = 0; if (WARN_ON(conn == conn_old)) return -EALREADY; -- 2.34.1