commit | 061759246ca4641f1c6f0752c765084fcf231f86 | [log] [tgz] |
---|---|---|
author | Yi Kong <yikong@google.com> | Fri Mar 02 00:55:28 2018 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Mar 02 00:55:28 2018 +0000 |
tree | 77dce84e5a76d50f41e356010f760528c7a209c7 | |
parent | d9b54aeb4846ec9827351556a98a78648ff93fb7 [diff] | |
parent | a281389bf4b52bdbb7430ffec723a23e41606352 [diff] |
Merge "Remove unreachable condition" am: a281389bf4 Change-Id: I99e38d37f5fae3a71787eb6c63826c5fc57ba653
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; }