From 37d4b6e86ee5bbc820958478ff714239fd06d162 Mon Sep 17 00:00:00 2001 From: Patrick Lai Date: Sun, 6 Jan 2013 00:27:22 -0800 Subject: [PATCH] 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 --- arch/arm/mach-msm/qdsp6v2/q6core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/arch/arm/mach-msm/qdsp6v2/q6core.c b/arch/arm/mach-msm/qdsp6v2/q6core.c index bb992db8476..8014254fa98 100644 --- a/arch/arm/mach-msm/qdsp6v2/q6core.c +++ b/arch/arm/mach-msm/qdsp6v2/q6core.c @@ -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");