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:
Luiz Augusto von Dentz 2017-06-01 15:56:13 +03:00 committed by Anas Nashif
commit a04d22c6d8

View file

@ -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 */