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

Commit 8a706f38 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Sync with AOSP to make http://r.android.com/326568 merge-able.

Bug: b/34054813
Test: it builds
Change-Id: Ia2ac85c9fa6822436823d1b7ec2c276d672e3cec
parent ceec4a06
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -300,14 +300,12 @@ status_t BnRadio::onTransact(
        case GET_PROGRAM_INFORMATION: {
            CHECK_INTERFACE(IRadio, data, reply);
            struct radio_program_info info;
            status_t status;

            status = radio_metadata_allocate(&info.metadata, 0, 0);
            status_t status = radio_metadata_allocate(&info.metadata, 0, 0);
            if (status != NO_ERROR) {
                return status;
            }
            status = getProgramInformation(&info);

            reply->writeInt32(status);
            if (status == NO_ERROR) {
                reply->write(&info, sizeof(struct radio_program_info));