Re: [patch] Btrfs: remove some no-op casts

2016-10-19 Thread David Sterba
On Wed, Oct 12, 2016 at 11:33:21AM +0300, Dan Carpenter wrote: > We cast 0 to a u8 but then because of type promotion, it's immediately > cast to int back to int before we do a bitwise negate. The cast doesn't > matter in this case, the code works as intended. It causes a static > checker

[patch] Btrfs: remove some no-op casts

2016-10-12 Thread Dan Carpenter
We cast 0 to a u8 but then because of type promotion, it's immediately cast to int back to int before we do a bitwise negate. The cast doesn't matter in this case, the code works as intended. It causes a static checker warning though so let's remove it. Signed-off-by: Dan Carpenter