regulator: Remove a redundant device_remove_file call in create_regulator
authorAxel Lin <axel.lin@gmail.com>
Fri, 5 Nov 2010 07:25:12 +0000 (15:25 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 30 Nov 2010 15:13:25 +0000 (15:13 +0000)
commitaa7a74040a989eeb7a9265550a2538863e842a93
tree6068b9432ed1933ad5829039b5fd902076b8ef5d
parent59c700cf20a6eefb68187df3468ffa0b11d5e9a4
regulator: Remove a redundant device_remove_file call in create_regulator

We already have device_remove_file() in error path,
no need to call it before goto link_name_err.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c