Merge "Fix clang-tidy performance warnings in libhardware." am: 1c1e311e06
am: 5f366ef448

Change-Id: I508c8edaaa897d5e2b9d3b47c63a82fd6806ea6a