[PATCH v1 01/16] j1939: transport: rename pending to active

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This list is used actually for active sessions.

Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx>
---
 net/can/j1939/transport.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/net/can/j1939/transport.c b/net/can/j1939/transport.c
index 88fe995a9716..7decc38a4d46 100644
--- a/net/can/j1939/transport.c
+++ b/net/can/j1939/transport.c
@@ -1155,14 +1155,14 @@ j1939_session *j1939_session_fresh_new(struct j1939_priv *priv,
 int j1939_session_activate(struct j1939_session *session)
 {
 	struct j1939_priv *priv = session->priv;
-	struct j1939_session *pending;
+	struct j1939_session *active;
 	int ret = 0;
 
 	j1939_session_list_lock(priv);
-	pending = j1939_session_get_by_skcb_locked(priv, &priv->active_session_list,
+	active = j1939_session_get_by_skcb_locked(priv, &priv->active_session_list,
 						   &session->skcb, false);
-	if (pending) {
-		j1939_session_put(pending);
+	if (active) {
+		j1939_session_put(active);
 		ret = -EAGAIN;
 	} else {
 		WARN_ON_ONCE(session->state != J1939_SESSION_NEW);
-- 
2.20.1




[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux