platform/x86: xiaomi-wmi: Drop unnecessary NULL checks
authorArmin Wolf <W_Armin@gmx.de>
Tue, 2 Apr 2024 14:30:58 +0000 (16:30 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 8 Apr 2024 15:45:35 +0000 (17:45 +0200)
commitc5e160ff34b4493452cba80c684f5e7c8fc1c9e2
treec7a1ec5aaeb1f47b10945121a1272882c8db8080
parent290680c2da8061e410bcaec4b21584ed951479af
platform/x86: xiaomi-wmi: Drop unnecessary NULL checks

The WMI driver core already makes sure that:

- a valid WMI device is passed to each callback
- the notify() callback runs after the probe() callback succeeds

Remove the unnecessary NULL checks.

Compile-tested only.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20240402143059.8456-3-W_Armin@gmx.de
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/xiaomi-wmi.c