-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Closed
Labels
CoverityA Coverity detected issue or its fixA Coverity detected issue or its fixbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug
Description
Static code scan issues found in file:
Category: Control flow issues
Function: check_level_trigger_pins
Component: Drivers
CID: 220305
Details:
zephyr/drivers/gpio/gpio_nrfx.c
Line 448 in 169144a
| if ((data->double_edge & bit) || |
442 if (!(level_pins & bit)) {
443 uint32_t sense = nrf_gpio_pin_sense_get(abs_pin);
444 bool high = (sense == GPIO_PIN_CNF_SENSE_High);
445
446 if (port_latch & bit) {
447 /* check if there was an interrupt */
>>> CID 220305: Control flow issues (DEADCODE)
>>> Execution cannot reach this statement: "if (data->double_edge & bit...".
448 if ((data->double_edge & bit) ||
449 ((!!data->int_active_level) == high)) {
450 out |= bit;
451 }
452
453 /* invert configured level */
Please fix or provide comments in coverity using the link:
https://scan9.coverity.com/reports.htm#v29271/p12996
Note: This issue was created automatically. Priority was set based on classification
of the file affected and the impact field in coverity. Assignees were set using the CODEOWNERS file.
Metadata
Metadata
Assignees
Labels
CoverityA Coverity detected issue or its fixA Coverity detected issue or its fixbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bugLow impact/importance bug