]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove some no-op casts
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Oct 2016 08:33:21 +0000 (11:33 +0300)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Oct 2016 16:20:29 +0000 (18:20 +0200)
commitedb2227273c7ea6b97cc2f1a6f87c8cb5b4b1cc4
treeec9abee1550c947b9effa966fe2281e450d3797f
parent12b3e5b603547bdc6dcb7d560e0a7b0a303c58a4
Btrfs: remove some no-op casts

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 <dan.carpenter@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent_io.c