summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_43xx_data.c
diff options
context:
space:
mode:
authorFelipe Balbi2014-11-13 17:36:55 +0100
committerPaul Walmsley2014-11-13 17:36:55 +0100
commit79005fbd3e1d671d08c45c9140ee9826efdc367c (patch)
treeafd0c8e73d0ffc2b7f12fab6cbc86bb5e9cfb105 /arch/arm/mach-omap2/omap_hwmod_43xx_data.c
parentARM: OMAP3+: DPLL: use determine_rate() and set_rate_and_parent() (diff)
downloadkernel-qcow2-linux-79005fbd3e1d671d08c45c9140ee9826efdc367c.tar.gz
kernel-qcow2-linux-79005fbd3e1d671d08c45c9140ee9826efdc367c.tar.xz
kernel-qcow2-linux-79005fbd3e1d671d08c45c9140ee9826efdc367c.zip
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 <balbi@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_43xx_data.c')
0 files changed, 0 insertions, 0 deletions