[dev] [ii] patch - simplify add_channel() a bit

From: Evan Gates <evan.gates_AT_gmail.com>
Date: Fri, 16 Jul 2010 14:47:32 -0700

Hello,

Another small ii patch. Originally add_channel does

        if(!channels) channels = c;
        else {
                c->next = channels;
                channels = c;
        }

but the check to see if channels is NULL is not needed. This patch
changes it to just

        c->next = channels;
        channels = c;

If channels is NULL, c will be the last element and c->next will be NULL anyway.

-emg

Received on Fri Jul 16 2010 - 23:47:32 CEST

This archive was generated by hypermail 2.2.0 : Sat Jul 17 2010 - 00:00:02 CEST