summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dumpstate/DumpstateDevice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp
index cb487aa..571d368 100644
--- a/dumpstate/DumpstateDevice.cpp
+++ b/dumpstate/DumpstateDevice.cpp
@@ -111,7 +111,7 @@ static void fugu_dump_base64(int out_fd, const char *path)
// Methods from ::android::hardware::dumpstate::V1_0::IDumpstateDevice follow.
Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
- if (handle == nullptr || handle->numFds < 1) {
+ if (handle->numFds < 1) {
ALOGE("no FDs\n");
return Void();
}