From: Stephen Boyd Date: Thu, 3 Feb 2011 23:48:35 +0000 (-0800) Subject: hvc_dcc: Simplify put_chars()/get_chars() loops X-Git-Tag: v2.6.39-rc1~470^2~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf73bd35a296b31dace098b9104b6b593ee0070f;p=pandora-kernel.git hvc_dcc: Simplify put_chars()/get_chars() loops Casting and anding with 0xff is unnecessary in hvc_dcc_put_chars() since buf is already a char[]. __dcc_get_char() can't return an int less than 0 since it only returns a char. Simplify the if statement in hvc_dcc_get_chars() to take this into account. Cc: Daniel Walker Signed-off-by: Stephen Boyd Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed