Remove #warning if the code already return the error code or value
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
bf391eaec2
commit
8d56a9bbcb
@ -1554,8 +1554,9 @@ static int dm9x_addmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac)
|
||||
|
||||
/* Add the MAC address to the hardware multicast routing table */
|
||||
|
||||
#warning "Multicast MAC support not implemented"
|
||||
return OK;
|
||||
/* #warning "Multicast MAC support not implemented" */
|
||||
|
||||
return -ENOSYS;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -1585,8 +1586,9 @@ static int dm9x_rmmac(FAR struct net_driver_s *dev, FAR const uint8_t *mac)
|
||||
|
||||
/* Add the MAC address to the hardware multicast routing table */
|
||||
|
||||
#warning "Multicast MAC support not implemented"
|
||||
return OK;
|
||||
/* #warning "Multicast MAC support not implemented" */
|
||||
|
||||
return -ENOSYS;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -2084,12 +2084,12 @@ static int enc_addmac(struct net_driver_s *dev, FAR const uint8_t *mac)
|
||||
|
||||
/* Add the MAC address to the hardware multicast routing table */
|
||||
|
||||
#warning "Multicast MAC support not implemented"
|
||||
/* #warning "Multicast MAC support not implemented" */
|
||||
|
||||
/* Un-lock the SPI bus */
|
||||
|
||||
enc_unlock(priv);
|
||||
return OK;
|
||||
return -ENOSYS;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -2122,12 +2122,12 @@ static int enc_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
|
||||
|
||||
/* Add the MAC address to the hardware multicast routing table */
|
||||
|
||||
#warning "Multicast MAC support not implemented"
|
||||
/* #warning "Multicast MAC support not implemented" */
|
||||
|
||||
/* Un-lock the SPI bus */
|
||||
|
||||
enc_unlock(priv);
|
||||
return OK;
|
||||
return -ENOSYS;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -2228,12 +2228,12 @@ static int enc_addmac(struct net_driver_s *dev, FAR const uint8_t *mac)
|
||||
|
||||
/* Add the MAC address to the hardware multicast routing table */
|
||||
|
||||
#warning "Multicast MAC support not implemented"
|
||||
/* #warning "Multicast MAC support not implemented" */
|
||||
|
||||
/* Un-lock the SPI bus */
|
||||
|
||||
enc_unlock(priv);
|
||||
return OK;
|
||||
return -ENOSYS;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -2266,12 +2266,12 @@ static int enc_rmmac(struct net_driver_s *dev, FAR const uint8_t *mac)
|
||||
|
||||
/* Add the MAC address to the hardware multicast routing table */
|
||||
|
||||
#warning "Multicast MAC support not implemented"
|
||||
/* #warning "Multicast MAC support not implemented" */
|
||||
|
||||
/* Un-lock the SPI bus */
|
||||
|
||||
enc_unlock(priv);
|
||||
return OK;
|
||||
return -ENOSYS;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -246,7 +246,8 @@ int dlclose(FAR void *handle)
|
||||
* memory region.
|
||||
*/
|
||||
|
||||
#warning Missing logic
|
||||
/* #warning Missing logic */
|
||||
|
||||
return -ENOSYS;
|
||||
#endif
|
||||
}
|
||||
|
@ -297,7 +297,8 @@ static inline FAR void *dlinsert(FAR const char *filename)
|
||||
|
||||
static inline FAR void *dlinsert(FAR const char *filename)
|
||||
{
|
||||
#warning Missing logic
|
||||
/* #warning Missing logic */
|
||||
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
@ -171,7 +171,8 @@ FAR void *dlsym(FAR void *handle, FAR const char *name)
|
||||
* memory region.
|
||||
*/
|
||||
|
||||
#warning Missing logic
|
||||
/* #warning Missing logic */
|
||||
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
@ -63,7 +63,8 @@ int dlsymtab(FAR const struct symtab_s *symtab, int nsymbols)
|
||||
* memory region.
|
||||
*/
|
||||
|
||||
#warning Missing logic
|
||||
/* #warning Missing logic */
|
||||
|
||||
return -ENOSYS;
|
||||
|
||||
#else
|
||||
|
@ -206,7 +206,8 @@ int nxcursor_get_position(NXHANDLE hnd, FAR struct nxgl_point_s *pos)
|
||||
* be we don't have the definitions exposed to get it.
|
||||
*/
|
||||
|
||||
#warning Missing logic
|
||||
/* #warning Missing logic */
|
||||
|
||||
set_errno(ENOSYS);
|
||||
return ERROR;
|
||||
}
|
||||
|
@ -224,7 +224,9 @@ int ipv4_setsockopt(FAR struct socket *psock, int option,
|
||||
case IP_MULTICAST_ALL: /* Modify the delivery policy of
|
||||
* multicast messages bound to
|
||||
* INADDR_ANY */
|
||||
#warning Missing logic
|
||||
|
||||
/* #warning Missing logic */
|
||||
|
||||
nwarn("WARNING: Unimplemented IPv4 option: %d\n", option);
|
||||
ret = -ENOSYS;
|
||||
break;
|
||||
|
@ -499,7 +499,8 @@ int local_release_halfduplex(FAR struct local_conn_s *conn)
|
||||
* would be destroyed.
|
||||
*/
|
||||
|
||||
# warning Missing logic
|
||||
/* #warning Missing logic */
|
||||
|
||||
return OK;
|
||||
|
||||
#else
|
||||
|
@ -215,7 +215,7 @@ static ssize_t local_send(FAR struct socket *psock,
|
||||
{
|
||||
/* Local UDP packet send */
|
||||
|
||||
#warning Missing logic
|
||||
/* #warning Missing logic */
|
||||
|
||||
ret = -ENOSYS;
|
||||
}
|
||||
|
@ -618,7 +618,7 @@ static int local_connect(FAR struct socket *psock,
|
||||
{
|
||||
/* Perform the datagram connection logic */
|
||||
|
||||
#warning Missing logic
|
||||
/* #warning Missing logic */
|
||||
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
@ -223,10 +223,6 @@ void net_chksum_adjust(FAR uint16_t *chksum,
|
||||
FAR const uint16_t *optr, ssize_t olen,
|
||||
FAR const uint16_t *nptr, ssize_t nlen)
|
||||
{
|
||||
#ifdef CONFIG_ENDIAN_BIG
|
||||
# warning "Not verified on big-endian yet."
|
||||
#endif
|
||||
|
||||
int32_t x;
|
||||
int32_t oldval;
|
||||
int32_t newval;
|
||||
|
Loading…
Reference in New Issue
Block a user