librss: simplify some NULL checks.

MFC after:	1 week
This commit is contained in:
pfg 2017-02-27 00:10:00 +00:00
parent e69cea8126
commit 3a9d940a84

View File

@ -244,10 +244,10 @@ rss_config_get(void)
return (rc);
error:
if ((rc != NULL) && rc->rss_bucket_map)
if (rc != NULL) {
free(rc->rss_bucket_map);
if (rc != NULL)
free(rc);
}
return (NULL);
}