Commit a04d22c6 authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz Committed by Anas Nashif
Browse files

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: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent 81cc8918
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -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 */