projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80abaf9
)
ath6kl: Remove deadcode in main.c
author
Vasanthakumar Thiagarajan
<
[email protected]
>
Tue, 3 Jan 2012 09:49:02 +0000
(15:19 +0530)
committer
Kalle Valo
<
[email protected]
>
Mon, 9 Jan 2012 10:44:41 +0000
(12:44 +0200)
In ath6kl_reset_device(), since control can never reach switch..case
when the target_type is neither TARGET_TYPE_AR6003 nor TARGET_TYPE_AR6004,
remove the default option of switch statement.
Signed-off-by: Vasanthakumar Thiagarajan <
[email protected]
>
Signed-off-by: Kalle Valo <
[email protected]
>
drivers/net/wireless/ath/ath6kl/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath6kl/main.c
b/drivers/net/wireless/ath/ath6kl/main.c
index cffbc62ee7932909895a27c0d21b67ab08a28420..d764768f8f7ad84ebabe637ddd708d7007077841 100644
(file)
--- a/
drivers/net/wireless/ath/ath6kl/main.c
+++ b/
drivers/net/wireless/ath/ath6kl/main.c
@@
-347,9
+347,6
@@
void ath6kl_reset_device(struct ath6kl *ar, u32 target_type,
case TARGET_TYPE_AR6004:
address = AR6004_RESET_CONTROL_ADDRESS;
break;
- default:
- address = AR6003_RESET_CONTROL_ADDRESS;
- break;
}
status = ath6kl_diag_write32(ar, address, data);