diff options
| author | Ben Gardiner <[email protected]> | 2011-04-21 18:19:01 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2011-04-26 10:43:19 +0000 |
| commit | 049cfaaa47cb9b796bbc298869c0a27d434bb766 (patch) | |
| tree | 5a81464c5693436d258f236c524a8398590d3c88 /fs/ubifs/commit.c | |
| parent | ASoC: add a module alias to the FSI driver (diff) | |
| download | kernel-049cfaaa47cb9b796bbc298869c0a27d434bb766.tar.gz kernel-049cfaaa47cb9b796bbc298869c0a27d434bb766.zip | |
ASoC: davinci-mcasp: correct tdm_slots limit
The current check for the number of tdm-slots specified by platform data is
always true (x >= 2 || x <= 32); therefore the else branch that warns of an
incorrect number of slots can never be taken.
Check that the number of tdm slots specified by platform data is between 2
and 32, inclusive.
Signed-off-by: Ben Gardiner <[email protected]>
Reviewed-by: James Nuss <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'fs/ubifs/commit.c')
0 files changed, 0 insertions, 0 deletions
