Linux CAN drivers development
 help / color / mirror / Atom feed
* Re: [PATCH can-next] net: can: j1939: use correct function name in comment
  2024-08-29 12:48 [PATCH can-next] net: can: j1939: use correct function name in comment Zhang Changzhong
@ 2024-08-29 12:35 ` Oleksij Rempel
  0 siblings, 0 replies; 2+ messages in thread
From: Oleksij Rempel @ 2024-08-29 12:35 UTC (permalink / raw)
  To: Zhang Changzhong
  Cc: linux-can, Marc Kleine-Budde, Oliver Hartkopp,
	Robin van der Gracht

On Thu, Aug 29, 2024 at 08:48:23PM +0800, Zhang Changzhong wrote:
> The function j1939_cancel_all_active_sessions() was renamed to
> j1939_cancel_active_session() but name in comment wasn't updated.
> 
> Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>

Acked-by: Oleksij Rempel <o.rempel@pengutronix.de>

Can you please add fixes tag
Fixes: 9d71dd0c70099 ("can: add support of SAE J1939 protocol")

Thank you!

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH can-next] net: can: j1939: use correct function name in comment
@ 2024-08-29 12:48 Zhang Changzhong
  2024-08-29 12:35 ` Oleksij Rempel
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang Changzhong @ 2024-08-29 12:48 UTC (permalink / raw)
  To: linux-can
  Cc: Zhang Changzhong, Marc Kleine-Budde, Oliver Hartkopp,
	Robin van der Gracht, Oleksij Rempel

The function j1939_cancel_all_active_sessions() was renamed to
j1939_cancel_active_session() but name in comment wasn't updated.

Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
---
 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 4be73de..319f47d 100644
--- a/net/can/j1939/transport.c
+++ b/net/can/j1939/transport.c
@@ -1179,10 +1179,10 @@ static enum hrtimer_restart j1939_tp_txtimer(struct hrtimer *hrtimer)
 		break;
 	case -ENETDOWN:
 		/* In this case we should get a netdev_event(), all active
-		 * sessions will be cleared by
-		 * j1939_cancel_all_active_sessions(). So handle this as an
-		 * error, but let j1939_cancel_all_active_sessions() do the
-		 * cleanup including propagation of the error to user space.
+		 * sessions will be cleared by j1939_cancel_active_session().
+		 * So handle this as an error, but let
+		 * j1939_cancel_active_session() do the cleanup including
+		 * propagation of the error to user space.
 		 */
 		break;
 	case -EOVERFLOW:
-- 
2.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-29 12:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-29 12:48 [PATCH can-next] net: can: j1939: use correct function name in comment Zhang Changzhong
2024-08-29 12:35 ` Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox