am 471157a3: charger: key state being the same is not an error

* commit '471157a393d052aece013d1f8b7701aaadca3b6c':
  charger: key state being the same is not an error
This commit is contained in:
Dima Zavin 2011-10-13 13:30:00 -07:00 committed by Android Git Automerger
commit 6606dc9532
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ static int set_key_callback(int code, int value, void *data)
/* ignore events that don't modify our state */
if (charger->keys[code].down == down)
return -1;
return 0;
/* only record the down even timestamp, as the amount
* of time the key spent not being pressed is not useful */