genl: Make genl_unregister() a NOP if NULL pointer is passed

This commit is contained in:
Thomas Graf 2012-04-22 11:12:01 +02:00
parent 2e93940a86
commit 8bbcd2208e

View file

@ -208,6 +208,9 @@ errout:
*/
void genl_unregister(struct nl_cache_ops *ops)
{
if (!ops)
return;
nl_cache_mngt_unregister(ops);
nl_list_del(&ops->co_genl->o_list);
}