summaryrefslogtreecommitdiff
path: root/drivers/video/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/output.c')
-rw-r--r--drivers/video/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/output.c b/drivers/video/output.c
index 5e6439ae7394..5137aa016b83 100644
--- a/drivers/video/output.c
+++ b/drivers/video/output.c
@@ -50,7 +50,7 @@ static ssize_t video_output_store_state(struct device *dev,
int request_state = simple_strtoul(buf,&endp,0);
size_t size = endp - buf;
- if (*endp && isspace(*endp))
+ if (isspace(*endp))
size++;
if (size != count)
return -EINVAL;