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.9-rc1~119^2~378^2~21^2~1725 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4e2b07e9ab8f8ddc7f6dbb6617ddb2bc704d15e9;p=karo-tx-linux.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 c85d95085040..b5332df7039c 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