]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
powerpc/mm/hash: Remove unnecessary do { } while(0) loop
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Thu, 9 Aug 2018 13:36:42 +0000 (19:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Aug 2018 12:25:57 +0000 (22:25 +1000)
commitf405b510c93eeb7390d0e2c6ef8d12af9a33021a
tree320450bcf2e3d196a64e15e982d651080c62feac
parente7e81847478b37a3958a3163171bf6aee99f87d7
powerpc/mm/hash: Remove unnecessary do { } while(0) loop

Avoid coverity false warnings like:

  *** CID 187347:  Control flow issues  (UNREACHABLE)
  /arch/powerpc/mm/hash_native_64.c: 819 in native_flush_hash_range()
  813        slot += hidx & _PTEIDX_GROUP_IX;
  814        hptep = htab_address + slot;
  815        want_v = hpte_encode_avpn(vpn, psize, ssize);
  816        hpte_v = hpte_get_old_v(hptep);
  817
  818        if (!HPTE_V_COMPARE(hpte_v, want_v) || !(hpte_v & HPTE_V_VALID))
  >>>     CID 187347:  Control flow issues  (UNREACHABLE)

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/hash-64k.h