• Felipe Balbi's avatar
    ARM: OMAP2+: hwmod: drop unnecessary list initialization · 79005fbd
    Felipe Balbi authored
    ml->node and sl->node are currently initialized
    by means of INIT_LIST_HEAD(). That initialiation
    is followed by a list_add() call.
    
    Looking at what both these functions do we will have:
    
    	ml->node.next = &ml->node;
    	ml->node.prev = &ml->node;
    	oi->master->master_ports.next.prev = &ml->node;
    	ml->node.next = &oi->master->master_ports.next;
    	ml->node.prev = &oi->master->master_ports;
    	oi->master->master_ports.next = &ml->node;
    
    from this, it's clear that both INIT_LIST_HEAD() calls
    are unnecessary and can be safely removed.
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
    79005fbd
omap_hwmod.c 121 KB