mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
RDMA/netlink: Simplify netlink listener existence check
All users of rdma_nl_chk_listeners() are interested to get boolean answer if netlink socket has listeners, so update all places to boolean function. Signed-off-by: Leon Romanovsky <[email protected]> Reviewed-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
This commit is contained in:
parent
d31131bba5
commit
38716732f1
4 changed files with 6 additions and 6 deletions
|
|
@ -96,7 +96,7 @@ int rdma_nl_multicast(struct sk_buff *skb, unsigned int group, gfp_t flags);
|
|||
/**
|
||||
* Check if there are any listeners to the netlink group
|
||||
* @group: the netlink group ID
|
||||
* Returns 0 on success or a negative for no listeners.
|
||||
* Returns true on success or false if no listeners.
|
||||
*/
|
||||
int rdma_nl_chk_listeners(unsigned int group);
|
||||
bool rdma_nl_chk_listeners(unsigned int group);
|
||||
#endif /* _RDMA_NETLINK_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue