From: Matt Evans Date: Wed, 1 Jun 2011 00:22:55 +0000 (+1000) Subject: xhci: Remove some unnecessary casts and tidy some endian swap code X-Git-Tag: v3.1-rc1~234^2~99^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5960b698eb50a39fce1a066dc19a6a5a1148e16;p=pandora-kernel.git xhci: Remove some unnecessary casts and tidy some endian swap code Some of the recently-added cpu_to_leXX and leXX_to_cpu made things somewhat messy; this patch neatens some of these areas, removing unnecessary casts in those parts also. In some places (where Y & Z are constants) a comparison of (leXX_to_cpu(X) & Y) == Z has been replaced with (X & cpu_to_leXX(Y)) == cpu_to_leXX(Z). The endian reversal of the constants should wash out at compile time. Signed-off-by: Matt Evans Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed