Change expression in ipmi_pef_get_info() in order to silence Coverity

Commit changes expression from ``if (!ptbl)'' to ``if (ptbl != NULL)'' in order
to silence Coverity. CID#1149049
This commit is contained in:
Zdenek Styblik 2014-12-30 16:02:21 +01:00
parent 61db4df637
commit ecfaeb2706

View File

@ -808,7 +808,7 @@ ipmi_pef_get_info(struct ipmi_intf * intf)
uint8_t actions, tbl_size; uint8_t actions, tbl_size;
tbl_size = ipmi_pef_get_policy_table(intf, &ptbl); tbl_size = ipmi_pef_get_policy_table(intf, &ptbl);
if (!ptbl) { if (ptbl != NULL) {
free(ptbl); free(ptbl);
ptbl = NULL; ptbl = NULL;
} }