mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
tcmu: Allow cmd_time_out to be set to zero (disabled)
The new cmd_time_out configfs attribute for TCMU is allowed to be disabled, so go ahead and drop the tcmu_cmd_time_out_store() check. Reported-by: Mike Christie <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
6c611d18f3
commit
740372b76e
1 changed files with 0 additions and 5 deletions
|
|
@ -1196,11 +1196,6 @@ static ssize_t tcmu_cmd_time_out_store(struct config_item *item, const char *pag
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (!val) {
|
||||
pr_err("Illegal value for cmd_time_out\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
udev->cmd_time_out = val * MSEC_PER_SEC;
|
||||
return count;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue