#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]) {
/* 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
if (dhd->dpc_tsk) {
kthread_stop(dhd->dpc_tsk);
dhd->dpc_tsk = NULL;
- }
- else
+ } else
tasklet_kill(&dhd->tasklet);
if (dhd->sysioc_tsk) {
sched_setscheduler(current, SCHED_FIFO, ¶m);
while (likely(!down_interruptible(&wl->event_sync))) {
- if(kthread_should_stop())
+ if (kthread_should_stop())
break;
e = wl_deq_event(wl);
if (unlikely(!e)) {
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
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 {
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 {
#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",