]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/44x: Fix mask and shift to zero bug
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 25 Aug 2017 10:33:40 +0000 (13:33 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Aug 2017 04:26:06 +0000 (14:26 +1000)
commitbf0227547e2abbe78ee88728de43b68a2a3f4704
treebe6b89614b9c30a8f69d11db03dd92de9e616a67
parentb250d716794faa3712c4a85b8d505f34981e2e8b
powerpc/44x: Fix mask and shift to zero bug

My static checker complains that 0x00001800 >> 13 is zero. Looking at
the context, it seems like a copy and paste bug from the line below
and probably 0x3 << 13 or 0x00006000 was intended.

Fixes: 03a30973838b ("[POWERPC] 4xx: Add 405GPr and 405EP support in boot wrapper")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/4xx.c