diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-26 02:57:12 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-10-26 02:57:12 -0600 |
commit | 1dad21650eb6fb3a4b9bba6c0ddd1402930163e2 (patch) | |
tree | 0779682be9a5f22d8e7c33824319d291105fa2c8 /cmd/sbc_harness/hw/w5500.c | |
parent | 20ff819fc032fb6ae902022f12891ae7c9f73151 (diff) |
Lint for tabs-as-alignment
Diffstat (limited to 'cmd/sbc_harness/hw/w5500.c')
-rw-r--r-- | cmd/sbc_harness/hw/w5500.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/cmd/sbc_harness/hw/w5500.c b/cmd/sbc_harness/hw/w5500.c index 6b90b99..a6cdc8b 100644 --- a/cmd/sbc_harness/hw/w5500.c +++ b/cmd/sbc_harness/hw/w5500.c @@ -84,14 +84,15 @@ * net.ipv4.ip_local_port_range, so I figure they're probably good * values to use. */ #ifndef CONFIG_W5500_LOCAL_PORT_MIN -# define CONFIG_W5500_LOCAL_PORT_MIN 32768 + #define CONFIG_W5500_LOCAL_PORT_MIN 32768 #endif + #ifndef CONFIG_W5500_LOCAL_PORT_MAX -# define CONFIG_W5500_LOCAL_PORT_MAX 60999 + #define CONFIG_W5500_LOCAL_PORT_MAX 60999 #endif #ifndef CONFIG_W5500_NUM -# error config.h must define CONFIG_W5500_NUM + #error config.h must define CONFIG_W5500_NUM #endif /* C language *****************************************************************/ @@ -101,13 +102,14 @@ /* mid-level utilities ********************************************************/ -/*static uint16_t w5500_get_local_port(struct w5500 *self) { - * uint16_t ret = self->next_local_port++; - * if (self->next_local_port > CONFIG_W5500_LOCAL_PORT_MAX) - * self->next_local_port = CONFIG_W5500_LOCAL_PORT_MIN; - * return ret; - *} - */ +#if 0 +static uint16_t w5500_get_local_port(struct w5500 *self) { + uint16_t ret = self->next_local_port++; + if (self->next_local_port > CONFIG_W5500_LOCAL_PORT_MAX) + self->next_local_port = CONFIG_W5500_LOCAL_PORT_MIN; + return ret; +} +#endif static COROUTINE w5500_irq_cr(void *_chip) { struct w5500 *chip = _chip; |