net/netlink: fix netlink poll return value on success

Make sure the return value is zero on success - as described in the
documentation of the function.

It doesn't look like the "error" affected any code.
This commit is contained in:
Kian Karas 2024-11-02 17:36:08 +01:00 committed by Xiang Xiao
parent 92f001ee0c
commit 105dd04ee5

View file

@ -80,7 +80,7 @@ int netlink_notifier_setup(worker_t worker, FAR struct netlink_conn_s *conn,
info.worker = worker;
conn->key = work_notifier_setup(&info);
return conn->key;
return conn->key < 0 ? conn->key : 0;
}
/****************************************************************************