/* range->old_num_channels; */
        /* range->old_num_frequency; */
        /* range->old_freq[6]; */ /* Filler to keep "version" at the same offset */
-       if (priv->rf_set_sens != NULL)
+       if (priv->rf_set_sens)
                range->sensitivity = priv->max_sens;    /* signal level threshold range */
 
        range->max_qual.qual = 100;
 {
        struct r8192_priv *priv = ieee80211_priv(dev);
 
-       if (priv->rf_set_sens == NULL)
+       if (!priv->rf_set_sens)
                return -1; /* we have not this support for this radio */
        wrqu->sens.value = priv->sens;
        return 0;
        short err = 0;
 
        mutex_lock(&priv->wx_mutex);
-       if (priv->rf_set_sens == NULL) {
+       if (!priv->rf_set_sens) {
                err = -1; /* we have not this support for this radio */
                goto exit;
        }
 
 
        ptxrate = (cmpk_tx_rahis_t *)pmsg;
 
-       if (ptxrate == NULL)
+       if (!ptxrate)
                return;
 
        for (i = 0; i < 16; i++) {
        /* 0. Check inpt arguments. It is a command queue message or
         * pointer is null.
         */
-       if (pstats == NULL)
+       if (!pstats)
                return 0;       /* This is not a command packet. */
 
        /* 1. Read received command packet message length from RFD. */