Remove some unused variables

This commit is contained in:
Sijmen 2021-01-06 05:39:53 +01:00
parent d8022f8cf8
commit f26febe13d
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
2 changed files with 0 additions and 4 deletions

View File

@ -106,8 +106,6 @@ namespace Net::Ipv4
void HandlePacket( void HandlePacket(
const Ethernet::Header& ethernetHeader, const uint8_t* buffer, const size_t bufferSize) const Ethernet::Header& ethernetHeader, const uint8_t* buffer, const size_t bufferSize)
{ {
char printBuffer[USPI_FRAME_BUFFER_SIZE] = {};
Header header; Header header;
const auto headerSize = Header::Deserialize(header, buffer, bufferSize); const auto headerSize = Header::Deserialize(header, buffer, bufferSize);
if (headerSize != Header::SerializedLength()) if (headerSize != Header::SerializedLength())

View File

@ -29,7 +29,6 @@ namespace Net
} }
// Wait 3 seconds, then run postInitialize // Wait 3 seconds, then run postInitialize
const auto optionsVoid = static_cast<void*>(&options);
DEBUG_LOG("Scheduled post-init\r\n"); DEBUG_LOG("Scheduled post-init\r\n");
Net::options = &options; Net::options = &options;
postInitializeTime = read32(ARM_SYSTIMER_CLO) + 30000; postInitializeTime = read32(ARM_SYSTIMER_CLO) + 30000;
@ -86,7 +85,6 @@ namespace Net
{ {
// Try parsing the IP address in the options. // Try parsing the IP address in the options.
unsigned int ip[4]; unsigned int ip[4];
char dot;
int scanned = int scanned =
sscanf(options->GetIPAddress(), "%u.%u.%u.%u", &ip[0], &ip[1], &ip[2], &ip[3]); sscanf(options->GetIPAddress(), "%u.%u.%u.%u", &ip[0], &ip[1], &ip[2], &ip[3]);