Merge "Fix clang-tidy performance warnings in libhardware."