Skip to content

Commit

Permalink
brcmsmac: remove some unnessessacry casts and void pointer
Browse files Browse the repository at this point in the history
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed Jul 10, 2012
1 parent 1ef1a57 commit a5fed0c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/net/wireless/brcm80211/brcmsmac/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4218,9 +4218,8 @@ static void brcms_c_radio_timer(void *arg)
}

/* 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;

BCMMSG(wlc->wiphy, "wl%d\n", wlc_hw->unit);
Expand All @@ -4241,10 +4240,8 @@ static void brcms_b_watchdog(void *arg)
}

/* 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);

if (!wlc->pub->up)
Expand Down Expand Up @@ -4284,7 +4281,9 @@ static void brcms_c_watchdog(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)
Expand Down

0 comments on commit a5fed0c

Please sign in to comment.