shell/sc_netif: added missing return statements
This commit is contained in:
parent
a6240e70ea
commit
2e2b0952fe
@ -225,6 +225,7 @@ static void _netif_set_u16(kernel_pid_t dev, ng_netconf_opt_t opt,
|
|||||||
printf("error: unable to set ");
|
printf("error: unable to set ");
|
||||||
_print_netconf(opt);
|
_print_netconf(opt);
|
||||||
puts("");
|
puts("");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("success: set ");
|
printf("success: set ");
|
||||||
@ -249,12 +250,14 @@ static void _netif_set_addr(kernel_pid_t dev, ng_netconf_opt_t opt,
|
|||||||
puts("error: unable to parse address.\n"
|
puts("error: unable to parse address.\n"
|
||||||
"Must be of format [0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*\n"
|
"Must be of format [0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*\n"
|
||||||
"(hex pairs delimited by colons)");
|
"(hex pairs delimited by colons)");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ng_netapi_set(dev, opt, 0, addr, addr_len) < 0) {
|
if (ng_netapi_set(dev, opt, 0, addr, addr_len) < 0) {
|
||||||
printf("error: unable to set ");
|
printf("error: unable to set ");
|
||||||
_print_netconf(opt);
|
_print_netconf(opt);
|
||||||
puts("");
|
puts("");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("success: set ");
|
printf("success: set ");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user