qed: Fix bitmap_weight() check
authorDenis Bolotin <denis.bolotin@cavium.com>
Mon, 19 Nov 2018 14:28:30 +0000 (16:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2018 02:38:15 +0000 (18:38 -0800)
commit276d43f0ae963312c0cd0e2b9a85fd11ac65dfcc
treecf272477414f37549f142cd25b2c6d0d7071c3ad
parentd7c60210a9d72210c9cf348f1221b2367b9c0bb4
qed: Fix bitmap_weight() check

Fix the condition which verifies that only one flag is set. The API
bitmap_weight() should receive size in bits instead of bytes.

Fixes: b5a9ee7cf3be ("qed: Revise QM cofiguration")
Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_dev.c