]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commit9c894696f56f5d84fb5766af81bcda4a7cb9a842
treeec9abee1550c947b9effa966fe2281e450d3797f
parentdd4b857aabbce57518f2d32d9805365d3ff34fc6
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