platform/x86: fujitsu-laptop: clean up local variables in call_fext_func()
authorMichał Kępień <kernel@kempniu.pl>
Mon, 3 Apr 2017 09:38:57 +0000 (11:38 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Thu, 13 Apr 2017 17:14:34 +0000 (10:14 -0700)
commitb10664105df0d26d1150f90ac508be0125fe5b42
tree8ee343a32216fc321c6b21e93a21e39b7f2b940f
parent1cf034ccf93852c299288415e4105043d02227d0
platform/x86: fujitsu-laptop: clean up local variables in call_fext_func()

Set values of FUNC call parameters in a designated initializer.  Do not
initialize status and handle variables as the values these are
initialized to have no influence on execution flow.  Use an array
variable instead of the address of the first element of that array.

Signed-off-by: Michał Kępień <kernel@kempniu.pl>
Reviewed-by: Jonathan Woithe <jwoithe@just42.net>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/fujitsu-laptop.c