Messages in this thread Patch in this message | | | From | Yangtao Li <> | Subject | [PATCH 05/15] thermal/drivers/hisi: remove redundant msg | Date | Tue, 27 Jun 2023 15:16:56 +0800 |
| |
The upper-layer devm_request_threaded_irq() function can directly print error information.
Signed-off-by: Yangtao Li <frank.li@vivo.com> --- drivers/thermal/hisi_thermal.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index 3f09ef8be41a..5f20f07a7566 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c @@ -580,10 +580,8 @@ static int hisi_thermal_probe(struct platform_device *pdev) hisi_thermal_alarm_irq_thread, IRQF_ONESHOT, sensor->irq_name, sensor); - if (ret < 0) { - dev_err(dev, "Failed to request alarm irq: %d\n", ret); + if (ret < 0) return ret; - } ret = data->ops->enable_sensor(sensor); if (ret) { -- 2.39.0
| |