]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: magnetometer: ak8975: remove duplicate error message
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 5 May 2026 11:46:07 +0000 (13:46 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:36 +0000 (10:59 +0100)
The devm_request_irq() already prints an error message.
Remove the duplicate.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c

index 00ac19325da6c5f698f449b21ca0272904c808ed..31e9c7c52c1884e244bd1598d4954a45d7915959 100644 (file)
@@ -583,17 +583,14 @@ static int ak8975_setup_irq(struct ak8975_data *data)
        rc = devm_request_irq(&client->dev, irq, ak8975_irq_handler,
                              IRQF_TRIGGER_RISING,
                              dev_name(&client->dev), data);
-       if (rc < 0) {
-               dev_err(&client->dev, "irq %d request failed: %d\n", irq, rc);
+       if (rc < 0)
                return rc;
-       }
 
        data->eoc_irq = irq;
 
        return rc;
 }
 
-
 /*
  * Perform some start-of-day setup, including reading the asa calibration
  * values and caching them.