arm: mach-msm: qdsp6v2: remove unnecessary write count check
write count is never going to be negative value Change-Id: Ie9468d4fbcccb2b7df87cbb67d0a911e584c8e62 Signed-off-by: Patrick Lai <plai@codeaurora.org>
This commit is contained in:
committed by
Iliyan Malchev
parent
5f5e11cab1
commit
37d4b6e86e
@@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2010-2013, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
@@ -249,8 +249,6 @@ static ssize_t apr_debug_write(struct file *file, const char __user *buf,
|
||||
int len;
|
||||
static int t_len;
|
||||
|
||||
if (count < 0)
|
||||
return 0;
|
||||
len = count > 63 ? 63 : count;
|
||||
if (copy_from_user(l_buf + 20 , buf, len)) {
|
||||
pr_info("Unable to copy data from user space\n");
|
||||
|
||||
Reference in New Issue
Block a user