Skip to contentSkip to conversation

drivers/rtc/rtc-bq32k.c: remove redundant check

PATCH Maninder Singh 1 participant 1 message Jul 15, 2015 Real time clock (RTC)

lore
Share & tools
lore
#0 lore raw

Hello

Quoted 3 lines
Quoted 1 line

removing below static analysis error:-

What tool did you use?

Its coverity analysis (static analysis) tool.
Or you can also use cppcheck tool.

Quoted 11 lines
Quoted 10 lines

(error) Possible null pointer dereference: client

if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C))

							^^^^^^^

Error comes beacause client is dereferenced before NULL check. So probabily NULL this check is not required.

---
 drivers/rtc/rtc-bq32k.c |    2 +-

Applied, to rtc-next.

Thanks.
Maninder
............

Signature · 9 lines
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.