mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
Revert "Staging: android: timed_gpio: Properly discard invalid timeout values."
This reverts commit a7f5cb901d.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user