sensor: Add validity check to prevent NULL dereferencing
This error was picked up by static analyser. The condition here will make
sure we are always in the valid case and never dereference a NULL
pointer.
Change-Id: I60d95bbc977e02b9c7eb46154aeb927f67d6f4a6
Signed-off-by:
Raphael Gault <raphael.gault@arm.com>
Loading
Please register or sign in to comment