mirror of https://gitee.com/openkylin/linux.git
staging: rtl8712: Remove redundant cast
struct firmware::data has type const u8*, as does *ppmappedfw, so the cast to u8* is unnecessary and slightly confusing. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0c05a5d663
commit
eecc515a1b
|
@ -86,7 +86,7 @@ static u32 rtl871x_open_fw(struct _adapter *padapter, const u8 **ppmappedfw)
|
|||
(int)padapter->fw->size);
|
||||
return 0;
|
||||
}
|
||||
*ppmappedfw = (u8 *)((*praw)->data);
|
||||
*ppmappedfw = (*praw)->data;
|
||||
return (*praw)->size;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue