Skip to content

Commit

Permalink
drivers: counter: Fix unchecked return value in mcp7940
Browse files Browse the repository at this point in the history
Fix unchecked return value scanned by Coverity.

Signed-off-by: James Roy <[email protected]>
  • Loading branch information
rruuaanng authored and kartben committed Jan 2, 2025
1 parent 638cfed commit 364c555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/counter/rtc_mcp7940n.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 364c555

Please sign in to comment.