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

Skip to content
Commit f64343e1 authored by Arnav Gupta's avatar Arnav Gupta Committed by Gerrit Code Review
Browse files

hdp: do not return a null value when hdp interface unavailable



We're not supposed to return a NULL from a int return function.

And indeed the calling Java code does not have a NPE check either.

If an HDP interface is not avaialable, send -1 which the Java
code correctly assumes as a failure to register the health app.

Change-Id: I5ac7dc6f9acc9fefae8d1d2233453448c3ba79bc
Signed-off-by: default avatarArnav Gupta <championswimmer@gmail.com>
parent efb1d740
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