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:
Rasmus Villemoes 2014-10-22 23:22:27 +02:00 committed by Greg Kroah-Hartman
parent 0c05a5d663
commit eecc515a1b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}