Skip to content

Commit fa9f924

Browse files
Mario Limonciellodvhart
authored andcommitted
platform/x86: dell-wmi: don't check length returned
This is intended to be variable and provided by the platform. Some platforms this year will be adopting a 32k WMI buffer, so don't complain when encountering those platforms or any other future changes. Signed-off-by: Mario Limonciello <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Pali Rohár <[email protected]> Signed-off-by: Darren Hart (VMware) <[email protected]>
1 parent 7e6dcbe commit fa9f924

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/platform/x86/dell-wmi.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ static void dell_wmi_input_destroy(struct wmi_device *wdev)
624624
* Vendor Signature 0 4 "DELL"
625625
* Object Signature 4 4 " WMI"
626626
* WMI Interface Version 8 4 <version>
627-
* WMI buffer length 12 4 4096
627+
* WMI buffer length 12 4 <length>
628628
*/
629629
static int dell_wmi_check_descriptor_buffer(struct wmi_device *wdev)
630630
{
@@ -674,10 +674,6 @@ static int dell_wmi_check_descriptor_buffer(struct wmi_device *wdev)
674674
dev_warn(&wdev->dev, "Dell descriptor buffer has unknown version (%lu)\n",
675675
(unsigned long) buffer[2]);
676676

677-
if (buffer[3] != 4096)
678-
dev_warn(&wdev->dev, "Dell descriptor buffer has invalid buffer length (%d)\n",
679-
buffer[3]);
680-
681677
priv->interface_version = buffer[2];
682678
ret = 0;
683679

0 commit comments

Comments
 (0)