if (len > 0)
        {
-               if ((wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen)))
+               wps_ie = rtw_get_wps_ie(buf, len, NULL, &wps_ielen);
+               if (wps_ie)
                {
                        #ifdef DEBUG_CFG80211
                        DBG_8192C("probe_req_wps_ielen =%d\n", wps_ielen);
                        DBG_871X("RTW_Tx:category(%u), action(%u)\n", category, action);
 
                /* starting alloc mgmt frame to dump it */
-               if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL)
+               pmgntframe = alloc_mgtxmitframe(pxmitpriv);
+               if (!pmgntframe)
                        goto fail;
 
                /* update attribute */
        }
 
        /* starting alloc mgmt frame to dump it */
-       if ((pmgntframe = alloc_mgtxmitframe(pxmitpriv)) == NULL) {
+       pmgntframe = alloc_mgtxmitframe(pxmitpriv);
+       if (!pmgntframe) {
                /* ret = -ENOMEM; */
                ret = _FAIL;
                goto exit;
 
        if (!wdev)
                return;
-
-       if (!(ndev = wdev_to_ndev(wdev)))
+       ndev = wdev_to_ndev(wdev);
+       if (!ndev)
                return;
 
        adapter = rtw_netdev_priv(ndev);