diff options
author | Sven Eckelmann <sven@narfation.org> | 2012-05-05 07:27:28 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-06-18 12:01:03 -0400 |
commit | 5346c35ebfbdb1727e60079456dd8071cb888059 (patch) | |
tree | 90bba36cd5e27b1a248cf78d4a4859b6d7275092 /net/batman-adv/icmp_socket.c | |
parent | e0f5211f9bbfaa66d27cda6b0dc86466c7dcb206 (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/icmp_socket.c')
-rw-r--r-- | net/batman-adv/icmp_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/icmp_socket.c b/net/batman-adv/icmp_socket.c index 2e98a57f3407..d27db8192e93 100644 --- a/net/batman-adv/icmp_socket.c +++ b/net/batman-adv/icmp_socket.c | |||
@@ -285,13 +285,13 @@ int bat_socket_setup(struct bat_priv *bat_priv) | |||
285 | 285 | ||
286 | d = debugfs_create_file(ICMP_SOCKET, S_IFREG | S_IWUSR | S_IRUSR, | 286 | d = debugfs_create_file(ICMP_SOCKET, S_IFREG | S_IWUSR | S_IRUSR, |
287 | bat_priv->debug_dir, bat_priv, &fops); | 287 | bat_priv->debug_dir, bat_priv, &fops); |
288 | if (d) | 288 | if (!d) |
289 | goto err; | 289 | goto err; |
290 | 290 | ||
291 | return 0; | 291 | return 0; |
292 | 292 | ||
293 | err: | 293 | err: |
294 | return 1; | 294 | return -ENOMEM; |
295 | } | 295 | } |
296 | 296 | ||
297 | static void bat_socket_add_packet(struct socket_client *socket_client, | 297 | static void bat_socket_add_packet(struct socket_client *socket_client, |