From: Rasmus Villemoes Date: Wed, 22 Oct 2014 21:22:27 +0000 (+0200) Subject: staging: rtl8712: Remove redundant cast X-Git-Tag: v4.14-rc1~6283^2~687 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eecc515a1b5ed6188562471f41a78988290376e6;p=platform%2Fkernel%2Flinux-rpi.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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712/hal_init.c index 1d6ade0..83f9341 100644 --- a/drivers/staging/rtl8712/hal_init.c +++ b/drivers/staging/rtl8712/hal_init.c @@ -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; }