From dd58bac1a34bc2ee0876d7af83eeced432fd2081 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Fri, 7 Aug 2026 23:47:31 +0200 Subject: [PATCH] avr: removed unneeded code. --- avr/apps/network/stats.asm | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/avr/apps/network/stats.asm b/avr/apps/network/stats.asm index f7c35be..d78d21e 100644 --- a/avr/apps/network/stats.asm +++ b/avr/apps/network/stats.asm @@ -25,13 +25,7 @@ AppNetwork_SendTxdStats: bigcall NETMSG_SendStats_Write ; (R16, R17, R18, R19, R20, R21, Z) sbiw xh:xl, 1 pop r16 - push yl - push yh - ldi yl, LOW(netInterfaceData) - ldi yh, HIGH(netInterfaceData) - bigcall NET_Interface_AddOrReleaseOutMsg ; (R16, R17, R18, X) - pop yh - pop yl + bigcall NET_Interface_AddOrReleaseOutMsg ; (R16, R17, R18, X) AppNetwork_SendTxdStats_end: ret ; @end @@ -52,13 +46,7 @@ AppNetwork_SendRxdStats: bigcall NETMSG_RecvStats_Write ; (R16, R17, R18, R19, R20, R21, Z) sbiw xh:xl, 1 pop r16 - push yl - push yh - ldi yl, LOW(netInterfaceData) - ldi yh, HIGH(netInterfaceData) - bigcall NET_Interface_AddOrReleaseOutMsg ; (R16, R17, R18, X) - pop yh - pop yl + bigcall NET_Interface_AddOrReleaseOutMsg ; (R16, R17, R18, X) AppNetwork_SendRxdStats_end: ret ; @end @@ -78,13 +66,7 @@ AppNetwork_SendMemStats: bigcall NETMSG_MemStats_Write ; (R16, R17, R18, R19, R20, R21) sbiw xh:xl, 1 pop r16 - push yl - push yh - ldi yl, LOW(netInterfaceData) - ldi yh, HIGH(netInterfaceData) - bigcall NET_Interface_AddOrReleaseOutMsg ; (R16, R17, R18, X) - pop yh - pop yl + bigcall NET_Interface_AddOrReleaseOutMsg ; (R16, R17, R18, X) AppNetwork_SendMemStats_end: ret ; @end