mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #2659 from haukepetersen/ng_fix_scnetif_return
shell/sc_netif: added missing return statements
This commit is contained in:
commit
72f91ad6be
@ -225,6 +225,7 @@ static void _netif_set_u16(kernel_pid_t dev, ng_netconf_opt_t opt,
|
||||
printf("error: unable to set ");
|
||||
_print_netconf(opt);
|
||||
puts("");
|
||||
return;
|
||||
}
|
||||
|
||||
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"
|
||||
"Must be of format [0-9a-fA-F]{2}(:[0-9a-fA-F]{2})*\n"
|
||||
"(hex pairs delimited by colons)");
|
||||
return;
|
||||
}
|
||||
|
||||
if (ng_netapi_set(dev, opt, 0, addr, addr_len) < 0) {
|
||||
printf("error: unable to set ");
|
||||
_print_netconf(opt);
|
||||
puts("");
|
||||
return;
|
||||
}
|
||||
|
||||
printf("success: set ");
|
||||
|
Loading…
Reference in New Issue
Block a user