mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 05:13:18 +00:00
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 Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20200413175957.30165-4-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
05a72b5616
commit
710c451fbc
@ -146,7 +146,7 @@ int rtl88eu_download_fw(struct adapter *adapt)
|
||||
struct dvobj_priv *dvobj = adapter_to_dvobj(adapt);
|
||||
struct device *device = dvobj_to_dev(dvobj);
|
||||
const struct firmware *fw;
|
||||
const char fw_name[] = "rtlwifi/rtl8188eufw.bin";
|
||||
static const char fw_name[] = "rtlwifi/rtl8188eufw.bin";
|
||||
struct rtl92c_firmware_header *pfwheader = NULL;
|
||||
u8 *download_data, *fw_data;
|
||||
size_t download_size;
|
||||
|
Loading…
Reference in New Issue
Block a user