* Remove unused variables.
* Return result of registerAsService().
Bug:
66996870
Test: build with WITH_TIDY=1
Change-Id: I79d1add6190e835de20a0b0c247bbbb259096c14
relative_install_path: "hw",
init_rc: ["android.hardware.usb@1.1-service.wahoo.rc"],
srcs: ["service.cpp", "Usb.cpp"],
+ cflags: [
+ "-Wall",
+ "-Werror",
+ ],
shared_libs: [
"libbase",
"libhidlbase",
dp = opendir("/sys/class/typec");
if (dp != NULL) {
- int32_t ports = 0;
- int32_t current = 0;
struct dirent *ep;
while ((ep = readdir(dp))) {