diff options
author | William A. Kennington III <wak@google.com> | 2018-09-27 12:07:39 -0700 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2018-09-27 13:46:41 -0700 |
commit | 798c28119c9e2c8ca964ed9a1eae878a2bb74a2a (patch) | |
tree | fb754905284cbf8cbf8bf286d54d3185e9e8dab2 | |
parent | 09095f8eed78fdfac87e690f3ae125d50ed03500 (diff) | |
download | phosphor-networkd-798c28119c9e2c8ca964ed9a1eae878a2bb74a2a.tar.gz phosphor-networkd-798c28119c9e2c8ca964ed9a1eae878a2bb74a2a.zip |
network_manager_main: errno is not negative
This looks like it got copied from somewhere. Don't negate the errno,
just return it as-is.
Tested:
Compiled as expected.
Change-Id: I6b28030bf211d12bacab6b69191406e612a6e45f
Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r-- | network_manager_main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/network_manager_main.cpp b/network_manager_main.cpp index 616d37e..2bc203f 100644 --- a/network_manager_main.cpp +++ b/network_manager_main.cpp @@ -66,9 +66,8 @@ void createNetLinkSocket(phosphor::Descriptor& smartSock) auto fd = socket(PF_NETLINK, SOCK_RAW | SOCK_NONBLOCK, NETLINK_ROUTE); if (fd < 0) { - auto r = -errno; log<level::ERR>("Unable to create the net link socket", - entry("ERRNO=%d", r)); + entry("ERRNO=%d", errno)); elog<InternalFailure>(); } smartSock.set(fd); |