]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Fix sparse warning in kmem_shake_allow
authorChristoph Hellwig <hch@infradead.org>
Thu, 16 Aug 2007 05:37:57 +0000 (15:37 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Wed, 5 Sep 2007 04:48:00 +0000 (14:48 +1000)
commita5d8eca3090cf6695ca8d52c09a3df6edf5497ef
treeff17a5076ff71294c29fe6e6fecc2615214cc153
parent4cc912a3ffbd5ed42fdba2dd8c2b548b57f7ab1a
[XFS] Fix sparse warning in kmem_shake_allow

We can't return a masked result of a __bitwise type. Compare it to 0 first
to keep the behaviour without the warning.

SGI-PV: 968555
SGI-Modid: xfs-linux-melb:xfs-kern:29309a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/linux-2.6/kmem.h