Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d239ae33 authored by Ursula Braun's avatar Ursula Braun Committed by David S. Miller
Browse files

netiucv: improve state checking in conn_action_txdone



state checking in conn_action_txdone() is inconsistent.
This patch makes it consistent and issues a trace message
if an unexpected state is detected for the netiucv device.

Signed-off-by: default avatarUrsula Braun <ursula.braun@de.ibm.com>
Signed-off-by: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d207cf4c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -739,7 +739,11 @@ static void conn_action_txdone(fsm_instance *fi, int event, void *arg)

	IUCV_DBF_TEXT(trace, 4, __func__);

	if (conn && conn->netdev)
	if (!conn || !conn->netdev) {
		IUCV_DBF_TEXT(data, 2,
			      "Send confirmation for unlinked connection\n");
		return;
	}
	privptr = netdev_priv(conn->netdev);
	conn->prof.tx_pending--;
	if (single_flag) {