summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/prism54/oid_mgt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/prism54/oid_mgt.c')
-rw-r--r--drivers/net/wireless/prism54/oid_mgt.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/wireless/prism54/oid_mgt.c b/drivers/net/wireless/prism54/oid_mgt.c
index 12123e2..eea2f04 100644
--- a/drivers/net/wireless/prism54/oid_mgt.c
+++ b/drivers/net/wireless/prism54/oid_mgt.c
@@ -268,11 +268,10 @@ mgt_clean(islpci_private *priv)
if (!priv->mib)
return;
- for (i = 0; i < OID_NUM_LAST; i++)
- if (priv->mib[i]) {
- kfree(priv->mib[i]);
- priv->mib[i] = NULL;
- }
+ for (i = 0; i < OID_NUM_LAST; i++) {
+ kfree(priv->mib[i]);
+ priv->mib[i] = NULL;
+ }
kfree(priv->mib);
priv->mib = NULL;
}
OpenPOWER on IntegriCloud