ath10k: pci: remove unnecessary casts
authorKalle Valo <kvalo@codeaurora.org>
Thu, 27 Jun 2019 18:47:30 +0000 (21:47 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jun 2019 19:14:15 +0000 (22:14 +0300)
commitd44c732cffe544d38641065a12e416e0ce4217c1
tree2747671a53bd55c6a3e8036feb6542c00866d8ed
parent2189135437d017bef86aafdee9f50d38d5525f03
ath10k: pci: remove unnecessary casts

Fixes checkpatch warnings:

drivers/net/wireless/ath/ath10k/pci.c:926: unnecessary cast may hide bugs, see http://c-faq.com/malloc/mallocnocast.html
drivers/net/wireless/ath/ath10k/pci.c:1072: unnecessary cast may hide bugs, see http://c-faq.com/malloc/mallocnocast.html

While at it, also remove unnecessary initialisation of data_buf variable in both cases.

Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/pci.c