From: David Daney Date: Thu, 25 Apr 2013 15:48:53 +0000 (+0000) Subject: MIPS: Remove redundant instructions from arch_spin_{,try}lock. X-Git-Tag: v3.10-rc1~15^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d39019a1655d195a60a86ebf38f9da30bd83d03;p=pandora-kernel.git MIPS: Remove redundant instructions from arch_spin_{,try}lock. We were doing: SRL $r,$?,16 ANDI $r,$r,0xffff The logical right shift by 16 leaves the upper 16 bits clear, so the subsequent masking out of those bits is redundant, and can safely be removed. Signed-off-by: David Daney Cc: linux-mips@linux-mips.org Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed