DHD_TRACE(("%s: Enter\n", __func__));
- if ((bcmerror =
- bcm_iovar_lencheck(vi, arg, len, IOV_ISSET(actionid))) != 0)
+ bcmerror = bcm_iovar_lencheck(vi, arg, len, IOV_ISSET(actionid));
+ if (bcmerror != 0)
goto exit;
if (plen >= (int)sizeof(int_val))
/* Set does NOT take qualifiers */
ASSERT(!set || (!params && !plen));
- if ((vi = bcm_iovar_lookup(dhd_iovars, name)) == NULL) {
+ vi = bcm_iovar_lookup(dhd_iovars, name);
+ if (vi == NULL) {
bcmerror = BCME_UNSUPPORTED;
goto exit;
}
wl_pkt_filter_enable_t enable_parm;
wl_pkt_filter_enable_t *pkt_filterp;
- if (!(arg_save = MALLOC(dhd->osh, strlen(arg) + 1))) {
+ arg_save = MALLOC(dhd->osh, strlen(arg) + 1);
+ if (!arg_save) {
DHD_ERROR(("%s: kmalloc failed\n", __func__));
goto fail;
}