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

Commit 18c3bbfb authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

am a37c3f18: Merge "Fix logspam when battery sysfs file not available." into jb-mr2-dev

* commit 'a37c3f18':
  Fix logspam when battery sysfs file not available.
parents ac6c8621 a37c3f18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ static jint getBatteryHealth(const char* status)

static int readFromFile(const String8& path, char* buf, size_t size)
{
    if (!path)
    if (path.isEmpty())
        return -1;
    int fd = open(path.string(), O_RDONLY, 0);
    if (fd == -1) {