Just two tiny cleanups.
Signed-off-by: Daniel Mack <daniel@zonque.org>
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);
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;