Remove comparisons to 0 or NULL
Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
        if (enabled)
                disable_gptimers(st->t->bit);
 
-       if (val == 0)
+       if (!val)
                return count;
 
        val = get_sclk() / val;
        unsigned int period = get_gptimer_period(st->t->id);
        unsigned long val;
 
-       if (period == 0)
+       if (!period)
                val = 0;
        else
                val = get_sclk() / get_gptimer_period(st->t->id);
 
        dev_dbg(&trig_info->rtc->dev, "trigger frequency is %u\n",
                trig_info->frequency);
        ret = rtc_irq_set_state(trig_info->rtc, &trig_info->task, state);
-       if (ret == 0)
+       if (!ret)
                trig_info->state = state;
 
        return ret;