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: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
d207cf4c1a
Коммит
d239ae339e
|
@ -739,8 +739,12 @@ static void conn_action_txdone(fsm_instance *fi, int event, void *arg)
|
||||||
|
|
||||||
IUCV_DBF_TEXT(trace, 4, __func__);
|
IUCV_DBF_TEXT(trace, 4, __func__);
|
||||||
|
|
||||||
if (conn && conn->netdev)
|
if (!conn || !conn->netdev) {
|
||||||
privptr = netdev_priv(conn->netdev);
|
IUCV_DBF_TEXT(data, 2,
|
||||||
|
"Send confirmation for unlinked connection\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
privptr = netdev_priv(conn->netdev);
|
||||||
conn->prof.tx_pending--;
|
conn->prof.tx_pending--;
|
||||||
if (single_flag) {
|
if (single_flag) {
|
||||||
if ((skb = skb_dequeue(&conn->commit_queue))) {
|
if ((skb = skb_dequeue(&conn->commit_queue))) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче