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

Commit a0511750 authored by Yi Kong's avatar Yi Kong Committed by Gerrit Code Review
Browse files

Merge "Fix -Wunused-variable compiler warning" into main

parents ea5827b3 6fcddef2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -468,7 +468,7 @@ status_t Gralloc4Mapper::isSupported(uint32_t width, uint32_t height, PixelForma
                                     uint32_t layerCount, uint64_t usage,
                                     bool* outSupported) const {
    IMapper::BufferDescriptorInfo descriptorInfo;
    if (auto error = sBufferDescriptorInfo("isSupported", width, height, format, layerCount, usage,
    if (sBufferDescriptorInfo("isSupported", width, height, format, layerCount, usage,
                              &descriptorInfo) != OK) {
        // Usage isn't known to the HAL or otherwise failed validation.
        *outSupported = false;