zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.97k stars 6.68k forks source link

[Coverity CID: 363727] Operands don't affect result in drivers/mfd/mfd_ad559x_spi.c #74758

Open zephyrbot opened 5 months ago

zephyrbot commented 5 months ago

Static code scan issues found in file:

https://github.com/zephyrproject-rtos/zephyr/tree/dcf42917c550714d2457947538b9e29d083e872e/drivers/mfd/mfd_ad559x_spi.c

Category: Integer handling issues Function: mfd_ad559x_spi_read_reg Component: Drivers CID: 363727

Details:

https://github.com/zephyrproject-rtos/zephyr/blob/dcf42917c550714d2457947538b9e29d083e872e/drivers/mfd/mfd_ad559x_spi.c#L50

Please fix or provide comments in coverity using the link:

https://scan9.scan.coverity.com/#/project-view/29271/12996?selectedIssue=363727

For more information about the violation, check the Coverity Reference. (CWE-569)

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 MAINTAINERS file.

aescolar commented 5 months ago

CC @jeppenodgaard @gmarull @aasinclair