Skip to content

Commit 569c752

Browse files
committed
Remove unused variable from ethernet socket utils
Remove the variable 'status' as this had a value assigned (from readSnSR), but it was never used.
1 parent 641ea44 commit 569c752

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libraries/Ethernet/src/utility/socket.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ void flush(SOCKET s) {
319319

320320
uint16_t igmpsend(SOCKET s, const uint8_t * buf, uint16_t len)
321321
{
322-
uint8_t status=0;
323322
uint16_t ret=0;
324323

325324
if (len > W5100.SSIZE)
@@ -335,7 +334,6 @@ uint16_t igmpsend(SOCKET s, const uint8_t * buf, uint16_t len)
335334

336335
while ( (W5100.readSnIR(s) & SnIR::SEND_OK) != SnIR::SEND_OK )
337336
{
338-
status = W5100.readSnSR(s);
339337
if (W5100.readSnIR(s) & SnIR::TIMEOUT)
340338
{
341339
/* in case of igmp, if send fails, then socket closed */

0 commit comments

Comments
 (0)