aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm831x-irq.c
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2011-07-13 23:22:26 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-07-31 23:28:26 +0200
commitb1224cd113d4441edee4a58a1e2e428141247c0d (patch)
treee3edb8c7f024d5df4d90a1ecfbf171c10343d684 /drivers/mfd/wm831x-irq.c
parentregulator: Storing tps65912 error codes in u8 (diff)
downloadlinux-dev-b1224cd113d4441edee4a58a1e2e428141247c0d.tar.xz
linux-dev-b1224cd113d4441edee4a58a1e2e428141247c0d.zip
mfd: Avoid two assignments if failures happen in tps65910_i2c_probe
In drivers/mfd/tps65910.c:tps65910_i2c_probe() there's potential for a tiny optimization. We assign to init_data->irq and init_data->irq_base long before we need them, and there are two potential exits from the function before they are needed. Moving the assignments below these two potential exits means we completely avoid doing them in these two (failure) cases. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Graeme Gregory <gg@slimlogic.co.uk> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm831x-irq.c')
0 files changed, 0 insertions, 0 deletions