]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
staging: rtl8712: Remove redundant cast
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 22 Oct 2014 21:22:27 +0000 (23:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 09:32:41 +0000 (17:32 +0800)
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>
drivers/staging/rtl8712/hal_init.c

index 1d6ade05fa1878ccbfa66a49fe0b05f0c02a43ad..83f93412c154c08fa36433b48f3e11a45d5e4da8 100644 (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;
 }