commit | a281389bf4b52bdbb7430ffec723a23e41606352 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Fri Mar 02 00:48:42 2018 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Mar 02 00:48:42 2018 +0000 |
tree | 77dce84e5a76d50f41e356010f760528c7a209c7 | |
parent | fe6cc42de4bdc754483e14f683e7d3640a34e405 [diff] | |
parent | 141cceee587d5a8867f9a19045ad22bb4369d955 [diff] |
Merge "Remove unreachable condition"
diff --git a/logd/LogBuffer.cpp b/logd/LogBuffer.cpp index 560f490..b8af2f0 100644 --- a/logd/LogBuffer.cpp +++ b/logd/LogBuffer.cpp
@@ -198,7 +198,7 @@ int LogBuffer::log(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, const char* msg, unsigned short len) { - if ((log_id >= LOG_ID_MAX) || (log_id < 0)) { + if (log_id >= LOG_ID_MAX) { return -EINVAL; }