Commit a5fed0c1 authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by John W. Linville

brcmsmac: remove some unnessessacry casts and void pointer

Acked-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1ef1a57d
...@@ -4218,9 +4218,8 @@ static void brcms_c_radio_timer(void *arg) ...@@ -4218,9 +4218,8 @@ static void brcms_c_radio_timer(void *arg)
} }
/* common low-level watchdog code */ /* common low-level watchdog code */
static void brcms_b_watchdog(void *arg) static void brcms_b_watchdog(struct brcms_c_info *wlc)
{ {
struct brcms_c_info *wlc = (struct brcms_c_info *) arg;
struct brcms_hardware *wlc_hw = wlc->hw; struct brcms_hardware *wlc_hw = wlc->hw;
BCMMSG(wlc->wiphy, "wl%d\n", wlc_hw->unit); BCMMSG(wlc->wiphy, "wl%d\n", wlc_hw->unit);
...@@ -4241,10 +4240,8 @@ static void brcms_b_watchdog(void *arg) ...@@ -4241,10 +4240,8 @@ static void brcms_b_watchdog(void *arg)
} }
/* common watchdog code */ /* common watchdog code */
static void brcms_c_watchdog(void *arg) static void brcms_c_watchdog(struct brcms_c_info *wlc)
{ {
struct brcms_c_info *wlc = (struct brcms_c_info *) arg;
BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit); BCMMSG(wlc->wiphy, "wl%d\n", wlc->pub->unit);
if (!wlc->pub->up) if (!wlc->pub->up)
...@@ -4284,7 +4281,9 @@ static void brcms_c_watchdog(void *arg) ...@@ -4284,7 +4281,9 @@ static void brcms_c_watchdog(void *arg)
static void brcms_c_watchdog_by_timer(void *arg) static void brcms_c_watchdog_by_timer(void *arg)
{ {
brcms_c_watchdog(arg); struct brcms_c_info *wlc = (struct brcms_c_info *) arg;
brcms_c_watchdog(wlc);
} }
static bool brcms_c_timers_init(struct brcms_c_info *wlc, int unit) static bool brcms_c_timers_init(struct brcms_c_info *wlc, int unit)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment