]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib-acpi: Remove unnecessary WARN_ON from acpi_gpiochip_free_interrupts
authorHans de Goede <hdegoede@redhat.com>
Wed, 28 Nov 2018 16:57:56 +0000 (17:57 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 7 Jan 2019 08:23:23 +0000 (09:23 +0100)
commit8ef87abe9c8294a685a5e9e51fef46eec6403228
tree05da9411d57ea528cd6c6ee13993e389f56a2e8d
parentf9bb4b753eb00c02014e4467a28609f4f6ac7f88
gpiolib-acpi: Remove unnecessary WARN_ON from acpi_gpiochip_free_interrupts

acpi_gpiochip_alloc_event only continues allocating an event and adding
it to the list if gpiochip_request_own_desc does not return an error.
So events with an error desc are never placed on the events list and this
check is really not necessary.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c