From: Bill Pemberton Date: Fri, 16 Jan 2015 02:18:26 +0000 (-0500) Subject: greybus: gb-vibrator: remove useless if in timeout_store() X-Git-Tag: v4.14-rc1~2366^2~378^2~21^2~1725 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e2b07e9ab8f8ddc7f6dbb6617ddb2bc704d15e9;p=platform%2Fkernel%2Flinux-rpi.git greybus: gb-vibrator: remove useless if in timeout_store() val is an unsigned long so there is no point in checking if it is less than zero. Signed-off-by: Bill Pemberton Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/gb-vibrator.c b/drivers/staging/greybus/gb-vibrator.c index c85d950..b5332df 100644 --- a/drivers/staging/greybus/gb-vibrator.c +++ b/drivers/staging/greybus/gb-vibrator.c @@ -100,8 +100,6 @@ static ssize_t timeout_store(struct device *dev, struct device_attribute *attr, return retval; } - if (val < 0) - return -EINVAL; if (val) retval = turn_on(vib, (u16)val); else