Skip to content

Commit

Permalink
ASoC: fsl_asrc: protect macro argument
Browse files Browse the repository at this point in the history
Protect macro argument with parentheses to avoid ambiguity.
This fixes a warning seen with clang:
  warning: logical not is only applied to the left hand side of this comparison

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Stefan Agner authored and Mark Brown committed Dec 6, 2017
1 parent 4fbd8d1 commit d1b726a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/fsl/fsl_asrc.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
#define REG_ASRDOC 0x74
#define REG_ASRDI(i) (REG_ASRDIA + (i << 3))
#define REG_ASRDO(i) (REG_ASRDOA + (i << 3))
#define REG_ASRDx(x, i) (x == IN ? REG_ASRDI(i) : REG_ASRDO(i))
#define REG_ASRDx(x, i) ((x) == IN ? REG_ASRDI(i) : REG_ASRDO(i))

#define REG_ASRIDRHA 0x80
#define REG_ASRIDRLA 0x84
Expand Down

0 comments on commit d1b726a

Please sign in to comment.