summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/pci.c
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2014-09-14 09:50:33 (GMT)
committerKalle Valo <kvalo@qca.qualcomm.com>2014-09-18 07:46:25 (GMT)
commitd8bb26b964038a465a944a393e83d7fb9f0c5f28 (patch)
tree7102462fa20b4102593cce52a1010d60ea6e4003 /drivers/net/wireless/ath/ath10k/pci.c
parentac04506c73d19dc8bdc167f79eef05d6bae5b644 (diff)
downloadlinux-d8bb26b964038a465a944a393e83d7fb9f0c5f28.tar.xz
ath10k: else is not generally useful after a break or return
Fixes checkpatch warnings: WARNING: else is not generally useful after a break or return Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/pci.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 08e88a3..abd0a68 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -362,10 +362,11 @@ static inline const char *ath10k_pci_get_irq_method(struct ath10k *ar)
if (ar_pci->num_msi_intrs > 1)
return "msi-x";
- else if (ar_pci->num_msi_intrs == 1)
+
+ if (ar_pci->num_msi_intrs == 1)
return "msi";
- else
- return "legacy";
+
+ return "legacy";
}
static int __ath10k_pci_rx_post_buf(struct ath10k_pci_pipe *pipe)