Merge "Revert "Check against LOG_ID_MAX instead of LOG_ID_KERNEL""

This commit is contained in:
Treehugger Robot 2017-02-14 23:08:15 +00:00 committed by Gerrit Code Review
commit 2bc8e32242
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ LIBLOG_HIDDEN struct android_log_transport_read logdLoggerRead = {
static int logdAvailable(log_id_t logId)
{
if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) {
if (logId > LOG_ID_KERNEL) {
return -EINVAL;
}
if (logId == LOG_ID_SECURITY) {