mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: rtl8712: Remove variable 'raw' from rtl871x_open_fw()
Remove useless variable 'raw' from function rtl871x_open_fw() making the code a bit easier to understand. Signed-off-by: Mauro Dreissig <mukadr@gmail.com> Link: https://lore.kernel.org/r/20200705143552.9368-5-mukadr@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f1c9ea1acf
commit
f1a4423ffa
@ -67,15 +67,13 @@ MODULE_FIRMWARE("rtlwifi/rtl8712u.bin");
|
||||
|
||||
static u32 rtl871x_open_fw(struct _adapter *adapter, const u8 **mappedfw)
|
||||
{
|
||||
const struct firmware **raw = &adapter->fw;
|
||||
|
||||
if (adapter->fw->size > 200000) {
|
||||
dev_err(&adapter->pnetdev->dev, "r8172u: Badfw->size of %d\n",
|
||||
(int)adapter->fw->size);
|
||||
return 0;
|
||||
}
|
||||
*mappedfw = (*raw)->data;
|
||||
return (*raw)->size;
|
||||
*mappedfw = adapter->fw->data;
|
||||
return adapter->fw->size;
|
||||
}
|
||||
|
||||
static void fill_fwpriv(struct _adapter *adapter, struct fw_priv *fwpriv)
|
||||
|
Loading…
Reference in New Issue
Block a user