summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2024-04-02 17:30:58 +0300
committerHans de Goede <hdegoede@redhat.com>2024-04-08 18:45:35 +0300
commitc5e160ff34b4493452cba80c684f5e7c8fc1c9e2 (patch)
treec7a1ec5aaeb1f47b10945121a1272882c8db8080 /include/linux/platform_data
parent290680c2da8061e410bcaec4b21584ed951479af (diff)
downloadlinux-c5e160ff34b4493452cba80c684f5e7c8fc1c9e2.tar.xz
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>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions