drivers: counter: Fix unchecked return value in mcp7940
Fix unchecked return value scanned by Coverity. Signed-off-by: James Roy <rruuaanng@outlook.com>
This commit is contained in:
parent
638cfede31
commit
364c555e21
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue