diff mbox series

[2/4] ath11k: modify code styling for boolean function return values

Message ID 1561162641-4676-2-git-send-email-srirrama@codeaurora.org (mailing list archive)
State Accepted
Commit a8bfc3648ccdae2435eede252c2dd45733187889
Delegated to: Kalle Valo
Headers show
Series [1/4] ath11k: Avoid use of struct initializers for runtime assignment | expand

Commit Message

Sriram R June 22, 2019, 12:17 a.m. UTC
Modify code styling for boolean function return values by directly
comparing memcmp() result with 0.

Signed-off-by: Sriram R <srirrama@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/reg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/reg.c b/drivers/net/wireless/ath/ath11k/reg.c
index f181061..1b1dd88 100644
--- a/drivers/net/wireless/ath/ath11k/reg.c
+++ b/drivers/net/wireless/ath/ath11k/reg.c
@@ -38,7 +38,7 @@  static bool ath11k_regdom_changes(struct ath11k *ar, char *alpha2)
 	if (!regd)
 		return true;
 
-	return !!(memcmp(regd->alpha2, alpha2, 2));
+	return memcmp(regd->alpha2, alpha2, 2) != 0;
 }
 
 static void