summaryrefslogtreecommitdiff
path: root/net/wimax/stack.c
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2013-10-18 05:23:20 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-10-18 17:20:43 (GMT)
commit636c0371a737c27510df867161fb8100c2f086bd (patch)
tree8112f958eeab13d16c07212ddb8bf6e264d47777 /net/wimax/stack.c
parent679815834857d5305dae108a03addccf16d86868 (diff)
downloadlinux-636c0371a737c27510df867161fb8100c2f086bd.tar.xz
tipc: correct return value of link_cmd_set_value routine
link_cmd_set_value() takes commands for link, bearer and media related configuration. Genereally the function returns 0 when a command is recognized, and -EINVAL when it is not. However, in the switch for link related commands it returns 0 even when the command is unrecognized. This will sometimes make it look as if a failed configuration command has been successful, but has otherwise no negative effects. We remove this anomaly by returning -EINVAL even for link commands. We also rework all three switches to make them conforming to common kernel coding style. Signed-off-by: Ying Xue <ying.xue@windriver.com> Reviewed-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/wimax/stack.c')
0 files changed, 0 insertions, 0 deletions