From 7877be328b937eb0591e9e41cc994cd41304eaaf Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 13 Jun 2018 21:25:01 -0500 Subject: [PATCH] netdev: Fix unneeded error negation device.c expects errors to be negative for both set_powered and set_4addr. --- src/netdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/netdev.c b/src/netdev.c index ac3d0ba1..ad9f1067 100644 --- a/src/netdev.c +++ b/src/netdev.c @@ -256,7 +256,7 @@ static void netdev_set_powered_result(int error, uint16_t type, if (!cb_data) return; - cb_data->callback(cb_data->netdev, -error, cb_data->user_data); + cb_data->callback(cb_data->netdev, error, cb_data->user_data); } static void netdev_set_powered_destroy(void *user_data) @@ -3517,7 +3517,7 @@ static void netdev_set_4addr_cb(struct l_genl_msg *msg, void *user_data) if (!error) cb_data->netdev->use_4addr = cb_data->value; - cb_data->callback(cb_data->netdev, -error, cb_data->user_data); + cb_data->callback(cb_data->netdev, error, cb_data->user_data); } static void netdev_set_4addr_destroy(void *user_data)