platform/surface: surface3-wmi: Fix variable 'status' set but not used compiler warning
authorHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 11:38:48 +0000 (12:38 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 12:23:55 +0000 (13:23 +0100)
commitf807f4b7b32db00fc8622289644362e0695989bb
tree3855f86f3888d000b0dbca0531efc4bc9a26c0ec
parentf1e1ea516721d1ea0b21327ff9e6cb2c2bb86e28
platform/surface: surface3-wmi: Fix variable 'status' set but not used compiler warning

Explicitly check the status rather then relying on output.pointer staying
NULL on an error. This silences the following compiler warning:

drivers/platform/surface/surface3-wmi.c:60:14: warning: variable 'status' set but not used [-Wunused-but-set-variable]

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210204113848.105994-1-hdegoede@redhat.com
drivers/platform/surface/surface3-wmi.c