Fix logical error code
Change-Id: I8fe1338ac833385577ea8e515745d8a44c226b63
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
{
struct display_lock *dl;
- if (state < S_NORMAL || state > S_LCDOFF || timeout < 0)
+ if (state < S_NORMAL || state > S_LCDOFF)
return -EINVAL;
dl = find_lock(state, pid);
{
struct display_lock *dl;
- if (state < S_NORMAL || state > S_LCDOFF || timeout < 0)
+ if (state < S_NORMAL || state > S_LCDOFF)
return -EINVAL;
dl = find_lock(state, pid);