瀏覽代碼

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>
Rasmus Villemoes 11 年之前
父節點
當前提交
eecc515a1b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/rtl8712/hal_init.c

+ 1 - 1
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);
 			(int)padapter->fw->size);
 		return 0;
 		return 0;
 	}
 	}
-	*ppmappedfw = (u8 *)((*praw)->data);
+	*ppmappedfw = (*praw)->data;
 	return (*praw)->size;
 	return (*praw)->size;
 }
 }