From bbb519688346dab8b58c90502537f858871f3bfe Mon Sep 17 00:00:00 2001 From: Chen Gang Date: Wed, 27 Feb 2013 13:56:16 +0800 Subject: [PATCH] --- yaml --- r: 363089 b: refs/heads/master c: ff9c351f96168a90d5a8239c350b565059e68be1 h: refs/heads/master i: 363087: 2aae9f9ff5e5efdc20efd384293f8c18e51617e9 v: v3 --- [refs] | 2 +- trunk/drivers/misc/apds990x.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 942fe762321a..33dc29051eaa 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d87c3f057922e616c0449aac518da200355c84e9 +refs/heads/master: ff9c351f96168a90d5a8239c350b565059e68be1 diff --git a/trunk/drivers/misc/apds990x.c b/trunk/drivers/misc/apds990x.c index 0e67f8263cd8..1efb6a4ea397 100644 --- a/trunk/drivers/misc/apds990x.c +++ b/trunk/drivers/misc/apds990x.c @@ -700,9 +700,6 @@ static ssize_t apds990x_lux_calib_store(struct device *dev, if (strict_strtoul(buf, 0, &value)) return -EINVAL; - if (chip->lux_calib > APDS_RANGE) - return -EINVAL; - chip->lux_calib = value; return len;