]> git.ipfire.org Git - thirdparty/grub.git/commit
net/net: Avoid unnecessary calls to grub_net_tcp_retransmit()
authorGlenn Washburn <development@efficientek.com>
Fri, 18 Mar 2022 06:51:32 +0000 (01:51 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 4 Apr 2022 17:43:35 +0000 (19:43 +0200)
commit848724273e4c3bac7ff88b21a8abd764ada57b9c
tree951c6a7421d66d94a582708d2fa1b5c887ed16f9
parentc1428350438a0f76e238785d9d1d16f7f1b3d85f
net/net: Avoid unnecessary calls to grub_net_tcp_retransmit()

In grub_net_poll_cards_idle_real(), only call grub_net_tcp_retransmit() if there
are network cards found. If there are no network card found, there can be no
tcp sockets to transmit on. So no need to go through that logic.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/net.c