]> git.alsa-project.org Git - alsa-lib.git/commit
topology: ctl: Fix access type checks
authorTakashi Iwai <tiwai@suse.de>
Tue, 8 Sep 2015 20:09:44 +0000 (22:09 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Sep 2015 20:09:44 +0000 (22:09 +0200)
commitf41fe763e9bc80783bf1471141ac06d514ffaef3
tree600f61f88ec1bd98f2ce12026a00fd4e2ca45aad
parent76b9cae026bf73a00ccf3ec8833ec56f0e64f451
topology: ctl: Fix access type checks

Fix the wrong bit-and check by adding parentheses properly:
  ctl.c: In function ‘tplg_add_bytes’:
  ctl.c:868:22: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses]
     if (be->hdr.access & SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE
                        ^

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/topology/ctl.c