wireless: Remove casts to same type
[deliverable/linux.git] / drivers / net / wireless / rtlwifi / rtl8192c / fw_common.c
index c20b3c30f62ed7bfdeef57cebef888228ec07d9f..44febfde9493425b9d9c47d04cf66e4be72ff815 100644 (file)
@@ -34,6 +34,7 @@
 #include "../rtl8192ce/def.h"
 #include "fw_common.h"
 #include <linux/export.h>
+#include <linux/kmemleak.h>
 
 static void _rtl92c_enable_fw_download(struct ieee80211_hw *hw, bool enable)
 {
@@ -167,7 +168,7 @@ static void _rtl92c_write_fw(struct ieee80211_hw *hw,
 {
        struct rtl_priv *rtlpriv = rtl_priv(hw);
        struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
-       u8 *bufferPtr = (u8 *) buffer;
+       u8 *bufferPtr = buffer;
 
        RT_TRACE(rtlpriv, COMP_FW, DBG_TRACE, "FW size is %d bytes\n", size);
 
@@ -261,7 +262,7 @@ int rtl92c_download_fw(struct ieee80211_hw *hw)
                return 1;
 
        pfwheader = (struct rtl92c_firmware_header *)rtlhal->pfirmware;
-       pfwdata = (u8 *) rtlhal->pfirmware;
+       pfwdata = rtlhal->pfirmware;
        fwsize = rtlhal->fwsize;
 
        if (IS_FW_HEADER_EXIST(pfwheader)) {
@@ -776,6 +777,8 @@ void rtl92c_set_fw_rsvdpagepkt(struct ieee80211_hw *hw, bool dl_finished)
        skb = dev_alloc_skb(totalpacketlen);
        if (!skb)
                return;
+       kmemleak_not_leak(skb);
+
        memcpy((u8 *) skb_put(skb, totalpacketlen),
               &reserved_page_packet, totalpacketlen);
 
This page took 0.024629 seconds and 5 git commands to generate.