From 364c555e211ee38a7f144a0c0252e314a28b0d95 Mon Sep 17 00:00:00 2001 From: James Roy Date: Sun, 15 Dec 2024 20:34:29 +0800 Subject: [PATCH] drivers: counter: Fix unchecked return value in mcp7940 Fix unchecked return value scanned by Coverity. Signed-off-by: James Roy --- drivers/counter/rtc_mcp7940n.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/counter/rtc_mcp7940n.c b/drivers/counter/rtc_mcp7940n.c index 783fd775f0b55f..38ffd93463d9a7 100644 --- a/drivers/counter/rtc_mcp7940n.c +++ b/drivers/counter/rtc_mcp7940n.c @@ -712,7 +712,7 @@ static int mcp7940n_init(const struct device *dev) gpio_init_callback(&data->int_callback, mcp7940n_init_cb, BIT(cfg->int_gpios.pin)); - gpio_add_callback(cfg->int_gpios.port, &data->int_callback); + (void)gpio_add_callback(cfg->int_gpios.port, &data->int_callback); /* Configure interrupt polarity */ if ((cfg->int_gpios.dt_flags & GPIO_ACTIVE_LOW) == GPIO_ACTIVE_LOW) {