From: Felipe Balbi Date: Thu, 13 Nov 2014 16:36:55 +0000 (-0700) Subject: ARM: OMAP2+: hwmod: drop unnecessary list initialization X-Git-Tag: omap-for-v3.19/clocks-and-pm^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79005fbd3e1d671d08c45c9140ee9826efdc367c;p=pandora-kernel.git ARM: OMAP2+: hwmod: drop unnecessary list initialization 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: Felipe Balbi Signed-off-by: Paul Walmsley --- Reading git-diff-tree failed