Skip to contentSkip to conversation

ath11k: fix return statements on void function warnings

PATCH New Karthikeyan Periyasamy 1 participant 1 message Jun 20, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: fix return statements on void function warnings

drivers/net/wireless/ath/ath11k/debug.h:130: void function return statements are not generally useful drivers/net/wireless/ath/ath11k/wmi.c:4692: void function return statements are not generally useful

---
 drivers/net/wireless/ath/ath11k/debug.h | 1 -
 drivers/net/wireless/ath/ath11k/wmi.c   | 1 -
 2 files changed, 2 deletions(-)
drivers/net/wireless/ath/ath11k/debug.h +0 -1
index 85fb2eb..d0c69c4 100644
@@ -126,7 +126,6 @@ static inline void ath11k_dbg_dump(struct ath11k_base *ab,
 				   const char *msg, const char *prefix,
 				   const void *buf, size_t len)
 {
-	return;
 }
 #endif /* CONFIG_ATH11K_DEBUG */
 
drivers/net/wireless/ath/ath11k/wmi.c +0 -1
index 485e6ac..a79b6d2 100644
@@ -4689,7 +4689,6 @@ static void ath11k_peer_delete_resp_event(struct ath11k_base *ab, u8 *evt_buf, u
 	/* TODO: Do we need to validate whether ath11k_peer_find() return NULL
 	 *	 Why this is needed when there is HTT event for peer delete
 	 */
-	return;
 }
 
 static inline const char *ath11k_wmi_vdev_resp_print(u32 vdev_resp_status)
Signature · 7 lines
1.9.1


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k