idualwifi7260: Don't memset NULL.
This commit is contained in:
@@ -539,7 +539,8 @@ iwm_fw_info_free(struct iwm_fw_info *fw)
|
|||||||
firmware_put(fw->fw_fp, FIRMWARE_UNLOAD);
|
firmware_put(fw->fw_fp, FIRMWARE_UNLOAD);
|
||||||
fw->fw_fp = NULL;
|
fw->fw_fp = NULL;
|
||||||
/* don't touch fw->fw_status */
|
/* don't touch fw->fw_status */
|
||||||
memset(fw->fw_sects, 0, sizeof(fw->fw_sects));
|
if (fw->fw_sects)
|
||||||
|
memset(fw->fw_sects, 0, sizeof(fw->fw_sects));
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
Reference in New Issue
Block a user