Make const char array 'fw_name' static. Clears a checkpatch warning and reduces object file size by 17 bytes (gcc 9.3.1 x86_64). WARNING: const array should probably be static const
Unified · Split
| @@ -146,7 +146,7 @@ int rtl88eu_download_fw(struct adapter *adapt) · 145 unmodified lines | ||
| 146 | 146 | struct dvobj_priv *dvobj = adapter_to_dvobj(adapt); |
| 147 | 147 | struct device *device = dvobj_to_dev(dvobj); |
| 148 | 148 | const struct firmware *fw; |
| 149 | − const char fw_name[] = "rtlwifi/rtl8188eufw.bin"; | |
| 149 | + static const char fw_name[] = "rtlwifi/rtl8188eufw.bin"; | |
| 150 | 150 | struct rtl92c_firmware_header *pfwheader = NULL; |
| 151 | 151 | u8 *download_data, *fw_data; |
| 152 | 152 | size_t download_size; |