From: Peter Huewe Date: Wed, 13 Feb 2013 03:05:22 +0000 (+0100) Subject: staging/rtl8187se: Reuse ReadBBPortUchar to avoid duplicated code X-Git-Tag: v3.9-rc1~127^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c370d9512c4ea0929e87cb18a2308d9422a350a;p=pandora-kernel.git staging/rtl8187se: Reuse ReadBBPortUchar to avoid duplicated code WriteBBPortUchar reimplements ReadBBPortUchar in its body, so we can remove the duplicated code by calling ReadBBPortUchar directly. Unfortunately we have to move ReadBBPortUchar around; while at it we can also get rid of the temporary variable for the return value. Also we can remove the local variables UCharData and RegisterContent in WriteBBPortUchar as they are not used / without effect. Both functions are only 'local' so we can mark them as static. Signed-off-by: Peter Huewe Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed