net: shell: Remove code adjust arguments
The shell takes care of removing the module name so it is no longer necessary to have this adjustment. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
81cc89189b
commit
a04d22c6d8
1 changed files with 0 additions and 12 deletions
|
@ -864,10 +864,6 @@ int net_shell_cmd_dns(int argc, char *argv[])
|
|||
int arg = 1;
|
||||
int ret, i;
|
||||
|
||||
if (strcmp(argv[0], "dns")) {
|
||||
arg++;
|
||||
}
|
||||
|
||||
if (!argv[arg]) {
|
||||
/* DNS status */
|
||||
ctx = dns_resolve_get_default();
|
||||
|
@ -1207,10 +1203,6 @@ int net_shell_cmd_nbr(int argc, char *argv[])
|
|||
int count = 0;
|
||||
int arg = 1;
|
||||
|
||||
if (strcmp(argv[0], "nbr")) {
|
||||
arg++;
|
||||
}
|
||||
|
||||
if (argv[arg]) {
|
||||
struct in6_addr addr;
|
||||
int ret;
|
||||
|
@ -1676,10 +1668,6 @@ int net_shell_cmd_tcp(int argc, char *argv[])
|
|||
int arg = 1;
|
||||
int ret;
|
||||
|
||||
if (strcmp(argv[0], "tcp")) {
|
||||
arg++;
|
||||
}
|
||||
|
||||
if (argv[arg]) {
|
||||
if (!strcmp(argv[arg], "connect")) {
|
||||
/* tcp connect <ip> port */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue