locks: use list_first_entry_or_null()
Simplify the code with list_first_entry_or_null(). Signed-off-by: NGeliang Tang <geliangtang@163.com> Signed-off-by: NJeff Layton <jeff.layton@primarydata.com>
Showing
想要评论请 注册 或 登录
Simplify the code with list_first_entry_or_null(). Signed-off-by: NGeliang Tang <geliangtang@163.com> Signed-off-by: NJeff Layton <jeff.layton@primarydata.com>