From: Jouni Malinen Date: Sat, 25 Jul 2015 16:50:43 +0000 (+0300) Subject: FST: Use -EINVAL instead of EINVAL as return value X-Git-Tag: hostap_2_5~317 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ceb8a79c33fe3d29bda2e9530663f7a4c22105b9;p=thirdparty%2Fhostap.git FST: Use -EINVAL instead of EINVAL as return value This is more consistent with other error cases. Signed-off-by: Jouni Malinen --- diff --git a/hostapd/ctrl_iface.c b/hostapd/ctrl_iface.c index 6be6c2ab5..aa803533c 100644 --- a/hostapd/ctrl_iface.c +++ b/hostapd/ctrl_iface.c @@ -2586,7 +2586,7 @@ hostapd_global_ctrl_iface_fst_attach(struct hapd_interfaces *interfaces, } } - return EINVAL; + return -EINVAL; } @@ -2608,7 +2608,7 @@ hostapd_global_ctrl_iface_fst_detach(struct hapd_interfaces *interfaces, } } - return EINVAL; + return -EINVAL; } #endif /* CONFIG_FST */