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:
parent
92f001ee0c
commit
105dd04ee5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue