From: Daniel Mack Date: Thu, 11 Sep 2014 15:34:52 +0000 (+0200) Subject: match: make kdbus_match_db_remove() void X-Git-Tag: upstream/0.20140911.160207utc~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f332eb9fe9551b7b8dec1bc1adb25b500c4fdd3;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git match: make kdbus_match_db_remove() void --- diff --git a/handle.c b/handle.c index 7376c56..639f476 100644 --- a/handle.c +++ b/handle.c @@ -621,7 +621,7 @@ static long kdbus_handle_ioctl_ep_connected(struct file *file, unsigned int cmd, if (ret < 0) break; - ret = kdbus_match_db_remove(conn, p); + kdbus_match_db_remove(conn, p); break; case KDBUS_CMD_MSG_SEND: { diff --git a/match.c b/match.c index 48b86ca..6582b2d 100644 --- a/match.c +++ b/match.c @@ -491,8 +491,8 @@ exit_free: * * Return: 0 on success, negative errno on failure. */ -int kdbus_match_db_remove(struct kdbus_conn *conn, - struct kdbus_cmd_match *cmd) +void kdbus_match_db_remove(struct kdbus_conn *conn, + struct kdbus_cmd_match *cmd) { struct kdbus_match_entry *entry, *tmp; struct kdbus_match_db *db = conn->match_db; @@ -502,6 +502,4 @@ int kdbus_match_db_remove(struct kdbus_conn *conn, if (entry->cookie == cmd->cookie) kdbus_match_entry_free(entry); mutex_unlock(&db->entries_lock); - - return 0; } diff --git a/match.h b/match.h index 1dde379..674db5b 100644 --- a/match.h +++ b/match.h @@ -21,8 +21,8 @@ int kdbus_match_db_new(struct kdbus_match_db **db); void kdbus_match_db_free(struct kdbus_match_db *db); int kdbus_match_db_add(struct kdbus_conn *conn, struct kdbus_cmd_match *cmd); -int kdbus_match_db_remove(struct kdbus_conn *conn, - struct kdbus_cmd_match *cmd); +void kdbus_match_db_remove(struct kdbus_conn *conn, + struct kdbus_cmd_match *cmd); bool kdbus_match_db_match_kmsg(struct kdbus_match_db *db, struct kdbus_conn *conn_src, struct kdbus_kmsg *kmsg);