/* Host buffer address in CE space */
        u32 ce_data;
        dma_addr_t ce_data_base = 0;
-       void *data_buf = NULL;
+       void *data_buf;
        int i;
 
        mutex_lock(&ar_pci->ce_diag_mutex);
         */
        alloc_nbytes = min_t(unsigned int, nbytes, DIAG_TRANSFER_LIMIT);
 
-       data_buf = (unsigned char *)dma_alloc_coherent(ar->dev, alloc_nbytes,
-                                                      &ce_data_base,
-                                                      GFP_ATOMIC);
-
+       data_buf = dma_alloc_coherent(ar->dev, alloc_nbytes, &ce_data_base,
+                                     GFP_ATOMIC);
        if (!data_buf) {
                ret = -ENOMEM;
                goto done;
        u32 *buf;
        unsigned int completed_nbytes, alloc_nbytes, remaining_bytes;
        struct ath10k_ce_pipe *ce_diag;
-       void *data_buf = NULL;
+       void *data_buf;
        dma_addr_t ce_data_base = 0;
        int i;
 
         */
        alloc_nbytes = min_t(unsigned int, nbytes, DIAG_TRANSFER_LIMIT);
 
-       data_buf = (unsigned char *)dma_alloc_coherent(ar->dev,
-                                                      alloc_nbytes,
-                                                      &ce_data_base,
-                                                      GFP_ATOMIC);
+       data_buf = dma_alloc_coherent(ar->dev, alloc_nbytes, &ce_data_base,
+                                     GFP_ATOMIC);
        if (!data_buf) {
                ret = -ENOMEM;
                goto done;