aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_sysfs.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2012-05-05 07:27:28 -0400
committerAntonio Quartulli <ordex@autistici.org>2012-06-18 12:01:03 -0400
commit5346c35ebfbdb1727e60079456dd8071cb888059 (patch)
tree90bba36cd5e27b1a248cf78d4a4859b6d7275092 /net/batman-adv/bat_sysfs.c
parente0f5211f9bbfaa66d27cda6b0dc86466c7dcb206 (diff)
batman-adv: Return error codes instead of -1 on failures
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/bat_sysfs.c')
-rw-r--r--net/batman-adv/bat_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bat_sysfs.c b/net/batman-adv/bat_sysfs.c
index 5bc7b66d32dc..62f4f6cb888a 100644
--- a/net/batman-adv/bat_sysfs.c
+++ b/net/batman-adv/bat_sysfs.c
@@ -680,7 +680,7 @@ void sysfs_del_hardif(struct kobject **hardif_obj)
680int throw_uevent(struct bat_priv *bat_priv, enum uev_type type, 680int throw_uevent(struct bat_priv *bat_priv, enum uev_type type,
681 enum uev_action action, const char *data) 681 enum uev_action action, const char *data)
682{ 682{
683 int ret = -1; 683 int ret = -ENOMEM;
684 struct hard_iface *primary_if = NULL; 684 struct hard_iface *primary_if = NULL;
685 struct kobject *bat_kobj; 685 struct kobject *bat_kobj;
686 char *uevent_env[4] = { NULL, NULL, NULL, NULL }; 686 char *uevent_env[4] = { NULL, NULL, NULL, NULL };