mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-30 19:52:13 +01:00
Remove unused variable from ethernet socket utils
Remove the variable 'status' as this had a value assigned (from readSnSR), but it was never used.
This commit is contained in:
parent
641ea440ff
commit
569c75246d
@ -319,7 +319,6 @@ void flush(SOCKET s) {
|
|||||||
|
|
||||||
uint16_t igmpsend(SOCKET s, const uint8_t * buf, uint16_t len)
|
uint16_t igmpsend(SOCKET s, const uint8_t * buf, uint16_t len)
|
||||||
{
|
{
|
||||||
uint8_t status=0;
|
|
||||||
uint16_t ret=0;
|
uint16_t ret=0;
|
||||||
|
|
||||||
if (len > W5100.SSIZE)
|
if (len > W5100.SSIZE)
|
||||||
@ -335,7 +334,6 @@ uint16_t igmpsend(SOCKET s, const uint8_t * buf, uint16_t len)
|
|||||||
|
|
||||||
while ( (W5100.readSnIR(s) & SnIR::SEND_OK) != SnIR::SEND_OK )
|
while ( (W5100.readSnIR(s) & SnIR::SEND_OK) != SnIR::SEND_OK )
|
||||||
{
|
{
|
||||||
status = W5100.readSnSR(s);
|
|
||||||
if (W5100.readSnIR(s) & SnIR::TIMEOUT)
|
if (W5100.readSnIR(s) & SnIR::TIMEOUT)
|
||||||
{
|
{
|
||||||
/* in case of igmp, if send fails, then socket closed */
|
/* in case of igmp, if send fails, then socket closed */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user