Skip to content
Commit 2e7ec2bc authored by Alexander Apostolu's avatar Alexander Apostolu Committed by Benjamin Cabé
Browse files

drivers: sensor: adi: adxl372: Remove logically dead code



Remove logically dead if and else-if conditions as shown by the static
analysis, replacing with the else statement.

When data_opt is assigned to the MIN of fifo_wmark_cfg and fifo_full_cfg,
both those variables will be non-NULL as an earlier condition ensures the
function returns if either one of the variables is NULL before assigning
to data_opt.

Signed-off-by: default avatarAlexander Apostolu <apostolu240@gmail.com>
parent 132d7961
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment