mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
drivers/encx24j600: Allow empty iolist elements
This commits allows using netdev_driver_t::send() to be called with one or more empty iolist elements. This fixes issue https://github.com/RIOT-OS/RIOT/issues/11163
This commit is contained in:
parent
85276fb7a0
commit
99db8e8717
@ -205,6 +205,10 @@ static void sram_op(encx24j600_t *dev, uint16_t cmd, uint16_t addr, char *ptr, i
|
||||
char* in = NULL;
|
||||
char* out = NULL;
|
||||
|
||||
if (!len) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* determine pointer addr
|
||||
*
|
||||
* all SRAM access commands have an
|
||||
|
Loading…
Reference in New Issue
Block a user