mwifiex: add custom IE framework
[deliverable/linux.git] / drivers / net / wireless / at76c50x-usb.c
index 4045e5ab0555a3cbd2f55b1aa0e413a137f6f7f0..3036c0bab05668ddfd89d1b262df237adf4aa85b 100644 (file)
@@ -1122,12 +1122,12 @@ exit:
 static void at76_dump_mib_local(struct at76_priv *priv)
 {
        int ret;
-       struct mib_local *m = kmalloc(sizeof(struct mib_phy), GFP_KERNEL);
+       struct mib_local *m = kmalloc(sizeof(*m), GFP_KERNEL);
 
        if (!m)
                return;
 
-       ret = at76_get_mib(priv->udev, MIB_LOCAL, m, sizeof(struct mib_local));
+       ret = at76_get_mib(priv->udev, MIB_LOCAL, m, sizeof(*m));
        if (ret < 0) {
                wiphy_err(priv->hw->wiphy,
                          "at76_get_mib (LOCAL) failed: %d\n", ret);
@@ -2512,10 +2512,8 @@ static void __exit at76_mod_exit(void)
 
        printk(KERN_INFO DRIVER_DESC " " DRIVER_VERSION " unloading\n");
        usb_deregister(&at76_driver);
-       for (i = 0; i < ARRAY_SIZE(firmwares); i++) {
-               if (firmwares[i].fw)
-                       release_firmware(firmwares[i].fw);
-       }
+       for (i = 0; i < ARRAY_SIZE(firmwares); i++)
+               release_firmware(firmwares[i].fw);
        led_trigger_unregister_simple(ledtrig_tx);
 }
 
This page took 0.023983 seconds and 5 git commands to generate.