staging: wilc1000: replace redundant computations with 0
authorColin Ian King <colin.king@canonical.com>
Tue, 10 Oct 2017 14:05:48 +0000 (15:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 14:42:28 +0000 (16:42 +0200)
commitbc7d21ca2c150ecb0153a901fa99733f960ea461
tree900f319a66edd8d3abee4f1c3717cf8c6240494a
parent2d10b8570416fd079c23f9d62fb7b88131938013
staging: wilc1000: replace redundant computations with 0

Shifting and masking strHostIfSetMulti->enabled is redundant since
enabled is a bool and so all the shifted and masked values will be
zero. Replace them with zero to simplify the code.

Detected by CoverityScan, CID#1339458 ("Bad shift operation") and
CID#1339506 ("Operands don't affect result").

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c