drivers/misc: beautify code: chip->lux_calib is u16 which will never more than APDS_RANGE

APDS_RANGE is 65535, chip->lux_calib is u16 (never more than APDS_RANGE).

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Chen Gang 2013-02-27 13:56:16 +08:00 committed by Greg Kroah-Hartman
parent d87c3f0579
commit ff9c351f96
1 changed files with 0 additions and 3 deletions

View File

@ -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;