]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/wireless/libertas/wext.c
wireless: checkpatch cleanups
[linux-2.6-omap-h63xx.git] / drivers / net / wireless / libertas / wext.c
index 4ef5b9e00c770b1235636f298a445304be011b03..19c2873d2d78fcd418573912f2bb488e4fcb7f7b 100644 (file)
@@ -32,10 +32,8 @@ static inline void libertas_postpone_association_work(wlan_private *priv)
 static inline void libertas_cancel_association_work(wlan_private *priv)
 {
        cancel_delayed_work(&priv->assoc_work);
-       if (priv->adapter->pending_assoc_req) {
-               kfree(priv->adapter->pending_assoc_req);
-               priv->adapter->pending_assoc_req = NULL;
-       }
+       kfree(priv->adapter->pending_assoc_req);
+       priv->adapter->pending_assoc_req = NULL;
 }