Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220284
b: refs/heads/master
c: eeb8e46
h: refs/heads/master
v: v3
  • Loading branch information
Jason Cooper authored and Greg Kroah-Hartman committed Oct 12, 2010
1 parent a517a51 commit 914f16f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 94dc5e778042daea25f2198884e2eb8f3bd350ed
refs/heads/master: eeb8e46b50e33010805a27590f17e008bbd2a339
7 changes: 3 additions & 4 deletions trunk/drivers/staging/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ static int _dhd_sysioc_thread(void *data)
#endif

while (down_interruptible(&dhd->sysioc_sem) == 0) {
if(kthread_should_stop())
if (kthread_should_stop())
break;
for (i = 0; i < DHD_MAX_IFS; i++) {
if (dhd->iflist[i]) {
Expand Down Expand Up @@ -1362,7 +1362,7 @@ static int dhd_dpc_thread(void *data)

/* Run until signal received */
while (1) {
if(kthread_should_stop())
if (kthread_should_stop())
break;
if (down_interruptible(&dhd->dpc_sem) == 0) {
/* Call bus dpc unless it indicated down
Expand Down Expand Up @@ -2343,8 +2343,7 @@ void dhd_detach(dhd_pub_t *dhdp)
if (dhd->dpc_tsk) {
kthread_stop(dhd->dpc_tsk);
dhd->dpc_tsk = NULL;
}
else
} else
tasklet_kill(&dhd->tasklet);

if (dhd->sysioc_tsk) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -3229,7 +3229,7 @@ static s32 wl_event_handler(void *data)

sched_setscheduler(current, SCHED_FIFO, &param);
while (likely(!down_interruptible(&wl->event_sync))) {
if(kthread_should_stop())
if (kthread_should_stop())
break;
e = wl_deq_event(wl);
if (unlikely(!e)) {
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/brcm80211/brcmfmac/wl_iw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2836,8 +2836,7 @@ wl_iw_set_wpaauth(struct net_device *dev,
val = WPA_AUTH_PSK;
else
val = WPA_AUTH_UNSPECIFIED;
}
else if (val & (WPA2_AUTH_PSK | WPA2_AUTH_UNSPECIFIED)) {
} else if (val & (WPA2_AUTH_PSK | WPA2_AUTH_UNSPECIFIED)) {
if (paramval & IW_AUTH_KEY_MGMT_PSK)
val = WPA2_AUTH_PSK;
else
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/staging/brcm80211/util/linux_osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ typedef struct bcm_static_buf {
unsigned char buf_use[MAX_STATIC_BUF_NUM];
} bcm_static_buf_t;

static bcm_static_buf_t *bcm_static_buf = 0;
static bcm_static_buf_t *bcm_static_buf;

#define MAX_STATIC_PKT_NUM 8
typedef struct bcm_static_pkt {
Expand All @@ -52,7 +52,7 @@ typedef struct bcm_static_pkt {
struct semaphore osl_pkt_sem;
unsigned char pkt_use[MAX_STATIC_PKT_NUM * 2];
} bcm_static_pkt_t;
static bcm_static_pkt_t *bcm_static_skb = 0;
static bcm_static_pkt_t *bcm_static_skb;
#endif /* DHD_USE_STATIC_BUF */

struct osl_info {
Expand Down Expand Up @@ -176,9 +176,9 @@ osl_t *osl_attach(void *pdev, uint bustype, bool pkttag)

#if defined(BRCM_FULLMAC) && defined(DHD_USE_STATIC_BUF)
if (!bcm_static_buf) {
if (!(bcm_static_buf =
(bcm_static_buf_t *) dhd_os_prealloc(3,
STATIC_BUF_SIZE + STATIC_BUF_TOTAL_LEN))) {
bcm_static_buf = (bcm_static_buf_t *) dhd_os_prealloc(3,
STATIC_BUF_SIZE + STATIC_BUF_TOTAL_LEN);
if (!bcm_static_buf) {
printk(KERN_ERR "can not alloc static buf!\n");
} else
printk(KERN_ERR "alloc static buf at %x!\n",
Expand Down

0 comments on commit 914f16f

Please sign in to comment.