aboutsummaryrefslogtreecommitdiffstats
path: root/sound/firewire
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-05-27 11:14:37 -0400
committerTakashi Iwai <tiwai@suse.de>2014-05-27 11:34:37 -0400
commit51212eea4f0e2ba9086d0949a524f81834d20ac4 (patch)
tree9929ffe593cf747fee4cad45607c4edbb97719e6 /sound/firewire
parentf9503a68fb8a69fb654f79b8f06bd099c478aab2 (diff)
ALSA: firewire-lib: Fix sparse warning of incorrect type in assignment
__be32 value should not be assigned directly to bool value. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
-rw-r--r--sound/firewire/cmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/firewire/cmp.c b/sound/firewire/cmp.c
index d31a403ac539..ba8df5a1be39 100644
--- a/sound/firewire/cmp.c
+++ b/sound/firewire/cmp.c
@@ -164,7 +164,9 @@ int cmp_connection_check_used(struct cmp_connection *c, bool *used)
164 c->resources.unit, TCODE_READ_QUADLET_REQUEST, 164 c->resources.unit, TCODE_READ_QUADLET_REQUEST,
165 pcr_address(c), &pcr, 4, 0); 165 pcr_address(c), &pcr, 4, 0);
166 if (err >= 0) 166 if (err >= 0)
167 *used = (pcr & cpu_to_be32(PCR_BCAST_CONN | PCR_P2P_CONN_MASK)); 167 *used = !!(pcr & cpu_to_be32(PCR_BCAST_CONN |
168 PCR_P2P_CONN_MASK));
169
168 return err; 170 return err;
169} 171}
170EXPORT_SYMBOL(cmp_connection_check_used); 172EXPORT_SYMBOL(cmp_connection_check_used);