OSDN Git Service

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)
commit862523297778775a0543110dcbf2ca832782f675
tree05da9411d57ea528cd6c6ee13993e389f56a2e8d
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
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