Revert "Staging: android: timed_gpio: Properly discard invalid timeout values."

This reverts commit a7f5cb901d.
This commit is contained in:
黄涛
2011-07-30 22:16:46 +08:00
parent b1d3b6d349
commit 278b2cbc24

View File

@@ -41,9 +41,7 @@ static ssize_t enable_store(
struct timed_output_dev *tdev = dev_get_drvdata(dev);
int value;
if (sscanf(buf, "%d", &value) != 1)
return -EINVAL;
sscanf(buf, "%d", &value);
tdev->enable(tdev, value);
return size;