platform/x86: msi-wmi: Fix variable 'status' set but not used compiler warning
authorHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 12:19:31 +0000 (13:19 +0100)
committerHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 12:35:20 +0000 (13:35 +0100)
commit2c15644ebed06949458bf6956ed124164ef51063
tree83765f71f959f8402c75cf12a89ffa4f15640ed9
parentf807f4b7b32db00fc8622289644362e0695989bb
platform/x86: msi-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.

Reported-by: Maximilian Luz <luzmaximilian@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210204121931.131617-1-hdegoede@redhat.com
drivers/platform/x86/msi-wmi.c