From 28079c549c5d6a92da7336d22b69164b04564a75 Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Mon, 27 Oct 2014 12:33:43 +0100 Subject: [PATCH] connection, message: cosmetics Just two tiny cleanups. Signed-off-by: Daniel Mack --- connection.c | 5 ++--- message.c | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) 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; -- 2.34.1