]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf555ff53c0fb52057163948226674295f5b5fbc5
tree83765f71f959f8402c75cf12a89ffa4f15640ed9
parent9b6dfa5868b8b8a193589b0bce2642fa74c0d48f
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