Skip to content

Commit

Permalink
ASoC: rt5645: fix coccinelle warnings
Browse files Browse the repository at this point in the history
Return statements in functions returning bool should use
true/false instead of 1/0.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Oder Chiou authored and Mark Brown committed May 8, 2014
1 parent 0f776ef commit 71bfa9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/soc/codecs/rt5645.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@ static bool rt5645_volatile_register(struct device *dev, unsigned int reg)
case RT5645_VENDOR_ID:
case RT5645_VENDOR_ID1:
case RT5645_VENDOR_ID2:
return 1;
return true;
default:
return 0;
return false;
}
}

Expand Down Expand Up @@ -391,9 +391,9 @@ static bool rt5645_readable_register(struct device *dev, unsigned int reg)
case RT5645_VENDOR_ID:
case RT5645_VENDOR_ID1:
case RT5645_VENDOR_ID2:
return 1;
return true;
default:
return 0;
return false;
}
}

Expand Down

0 comments on commit 71bfa9b

Please sign in to comment.