Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759516AbbFBPuE (ORCPT ); Tue, 2 Jun 2015 11:50:04 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:53791 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759475AbbFBPtf (ORCPT ); Tue, 2 Jun 2015 11:49:35 -0400 X-Sasl-enc: Grf/b7racorW7zpJFiT1sLRqjkqPW5Gn40rRF+Qa+cW/ 1433260173 From: Sergei Zviagintsev To: Greg Kroah-Hartman , Daniel Mack , David Herrmann , Djalal Harouni Cc: linux-kernel@vger.kernel.org, Sergei Zviagintsev Subject: [PATCH] kdbus: kdbus_conn_connect(): use `bus' instead of `conn->ep->bus' Date: Tue, 2 Jun 2015 18:48:50 +0300 Message-Id: <1433260130-1604-4-git-send-email-sergei@s15v.net> X-Mailer: git-send-email 1.8.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 994 Lines: 28 Local `bus' is already set to `conn->ep->bus'. Use it. Signed-off-by: Sergei Zviagintsev --- ipc/kdbus/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipc/kdbus/connection.c b/ipc/kdbus/connection.c index b00872edbbc9..b9f13749a748 100644 --- a/ipc/kdbus/connection.c +++ b/ipc/kdbus/connection.c @@ -432,7 +432,7 @@ static int kdbus_conn_connect(struct kdbus_conn *conn, const char *name) * directly, and won't cause any notifications. */ if (!kdbus_conn_is_monitor(conn)) { - ret = kdbus_notify_id_change(conn->ep->bus, KDBUS_ITEM_ID_ADD, + ret = kdbus_notify_id_change(bus, KDBUS_ITEM_ID_ADD, conn->id, conn->flags); if (ret < 0) goto exit_disconnect; -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/