Skip to content

drivers: sensor: xbr818: uint8_t var cannot be greater than 0xff #91972

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jilaypandya
Copy link
Member

@jilaypandya jilaypandya commented Jun 21, 2025

SENSOR_XBR818_CLOCKRATE / val->val1 is getting assigned to uint8_t variable which is causing the logically dead issue, this commit is a fix for it.

#90534

@teburd
Copy link
Collaborator

teburd commented Jun 21, 2025

pr and commit title needs to be more specific

SENSOR_XBR818_CLOCKRATE / val->val1 is getting assigned
to uint8_t variable which is causing the logically
dead issue, this commit is a fix for it.

Signed-off-by: Jilay Pandya <[email protected]>
@jilaypandya jilaypandya changed the title drivers: sensor: fix logically deadcode issue drivers: sensor: xbr818: uint8_t var cannot be greater than 0xff Jun 21, 2025
@jilaypandya
Copy link
Member Author

pr and commit title needs to be more specific

ls it okay now :) ?

Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Coverity CID: 516243] Logically dead code in drivers/sensor/xbr818/xbr818.c
3 participants