mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
netlib_xarp: remove redundant cast
removes redundant type casts in ARP-related network library functions. The casts from req.arp_dev (already a char array) to (FAR char *) are unnecessary and can be safely removed. Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
parent
bb9229de06
commit
d48b45000d
4 changed files with 4 additions and 7 deletions
|
|
@ -1310,7 +1310,7 @@ int cmd_arp(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
|
|||
FAR uint8_t *ptr;
|
||||
|
||||
if (ifname != NULL &&
|
||||
strcmp(ifname, (FAR char *)arptab[i].arp_dev) != 0)
|
||||
strcmp(ifname, arptab[i].arp_dev) != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue