History

staging: rtl8188eu: make const char array static

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

Michael Straube committed 6 years ago

Commit 710c4511 parent 05a72b51 file · +1 −1Browse files

Unified · Split

drivers/staging/rtl8188eu/hal/fw.c+1−1
@@ -146,7 +146,7 @@ int rtl88eu_download_fw(struct adapter *adapt) · 145 unmodified lines
146146 struct dvobj_priv *dvobj = adapter_to_dvobj(adapt);
147147 struct device *device = dvobj_to_dev(dvobj);
148148 const struct firmware *fw;
149− const char fw_name[] = "rtlwifi/rtl8188eufw.bin";
149+ static const char fw_name[] = "rtlwifi/rtl8188eufw.bin";
150150 struct rtl92c_firmware_header *pfwheader = NULL;
151151 u8 *download_data, *fw_data;
152152 size_t download_size;