From: Daniel Mack Date: Mon, 27 Oct 2014 11:33:43 +0000 (+0100) Subject: connection, message: cosmetics X-Git-Tag: upstream/0.20141102.012929utc~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28079c549c5d6a92da7336d22b69164b04564a75;p=platform%2Fcore%2Fsystem%2Fkdbus-bus.git connection, message: cosmetics Just two tiny cleanups. Signed-off-by: Daniel Mack --- diff --git a/connection.c b/connection.c index 4bafc63..898db9c 100644 --- a/connection.c +++ b/connection.c @@ -118,9 +118,8 @@ exit_dec_reply_count: static void __kdbus_conn_reply_free(struct kref *kref) { - struct kdbus_conn_reply *reply = container_of(kref, - struct kdbus_conn_reply, - kref); + struct kdbus_conn_reply *reply = + container_of(kref, struct kdbus_conn_reply, kref); atomic_dec(&reply->reply_dst->reply_count); kdbus_conn_unref(reply->reply_dst); diff --git a/message.c b/message.c index 8f40314..8550d62 100644 --- a/message.c +++ b/message.c @@ -222,8 +222,7 @@ static int kdbus_msg_scan_items(struct kdbus_conn *conn, if (n > KDBUS_MSG_MAX_FDS) return -EMFILE; - kmsg->fds = kcalloc(n, sizeof(struct file *), - GFP_KERNEL); + kmsg->fds = kcalloc(n, sizeof(*kmsg->fds), GFP_KERNEL); if (!kmsg->fds) return -ENOMEM;