platform/x86: fujitsu-laptop: cleanup error labels in fujitsu_init()
authorMichał Kępień <kernel@kempniu.pl>
Fri, 10 Mar 2017 10:50:36 +0000 (11:50 +0100)
committerDarren Hart <dvhart@infradead.org>
Wed, 15 Mar 2017 05:57:18 +0000 (22:57 -0700)
commitc2cddd4f7d686ae7185af44885894202b5c8af63
tree0786a5f058bfe08bceed3e7bb2df3789818ea0fe
parentaea3137c2cb641e69b80ee5b3c376120034e458d
platform/x86: fujitsu-laptop: cleanup error labels in fujitsu_init()

Error labels currently used in fujitsu_init() are really hard to follow:
some (fail_laptop) indicate which operation has failed, others
(fail_sysfs_group) indicate where unrolling should start and the rest
(fail_platform_driver) is simply confusing.  Change them to follow the
pattern used throughout the rest of the module, i.e. make every label
indicate the first unrolling operation it leads to.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-and-tested-by: Jonathan Woithe <jwoithe@just42.net>
drivers/platform/x86/fujitsu-laptop.c