From: Ying Xue Date: Fri, 18 Oct 2013 05:23:20 +0000 (+0200) Subject: tipc: correct return value of link_cmd_set_value routine X-Git-Tag: v3.13-rc1~105^2~177^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=636c0371a737c27510df867161fb8100c2f086bd;p=pandora-kernel.git 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 Reviewed-by: Paul Gortmaker Signed-off-by: Jon Maloy Signed-off-by: David S. Miller --- Reading git-diff-tree failed