Re: [PATCH v2 3/3] slab: use logical instead of bitwise operation in kmalloc_type()

2018-11-09 Thread Andrew Morton
On Fri, 9 Nov 2018 10:35:34 +0100 Johannes Berg wrote: > The operation here really is more logical than bitwise, even if > due to the setup the bitwise operation works fine. However, this > causes a complaint from sparse that the operation doesn't really > make sense due to the not. > > Use a

[PATCH v2 3/3] slab: use logical instead of bitwise operation in kmalloc_type()

2018-11-09 Thread Johannes Berg
From: Johannes Berg The operation here really is more logical than bitwise, even if due to the setup the bitwise operation works fine. However, this causes a complaint from sparse that the operation doesn't really make sense due to the not. Use a logical and instead of bitwise. In my (somewhat