From: Jesper Juhl Date: Wed, 13 Jul 2011 21:22:26 +0000 (+0200) Subject: mfd: Avoid two assignments if failures happen in tps65910_i2c_probe X-Git-Tag: v3.1-rc1~100^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1224cd113d4441edee4a58a1e2e428141247c0d;p=pandora-kernel.git 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 Acked-by: Graeme Gregory Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed