Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 617f6f7e authored by Maninder Singh's avatar Maninder Singh Committed by Alexandre Belloni
Browse files

rtc: bq32k: remove redundant check



removing below static analysis error:
(error) Possible null pointer dereference: client

if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))
							^^^^^^^
Error comes because client is dereferenced before NULL check.
So probably NULL this check is not required.

Signed-off-by: default avatarManinder Singh <maninder1.s@samsung.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 508db592
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment