Skip to content

Commit

Permalink
ASoC: max9850: use true and false for boolean values
Browse files Browse the repository at this point in the history
Return statements in functions returning bool should use true or false
instead of an integer value.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
GustavoARSilva authored and broonie committed Aug 6, 2018
1 parent 5019027 commit 038541d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/max9850.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ static bool max9850_volatile_register(struct device *dev, unsigned int reg)
switch (reg) {
case MAX9850_STATUSA:
case MAX9850_STATUSB:
return 1;
return true;
default:
return 0;
return false;
}
}

Expand Down

0 comments on commit 038541d

Please sign in to comment.