[17/25] sound: Use bool function return values of true/false not 1/0
diff mbox

Message ID 89241da97a2fb2d869ea7902b34743bc4991e88b.1427759009.git.joe@perches.com
State New, archived
Headers show

Commit Message

Joe Perches March 30, 2015, 11:46 p.m. UTC
Use the normal return values for bool functions

Signed-off-by: Joe Perches <joe@perches.com>
---
 include/sound/soc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Brown March 31, 2015, 7:11 a.m. UTC | #1
On Mon, Mar 30, 2015 at 04:46:15PM -0700, Joe Perches wrote:
> Use the normal return values for bool functions

Joe, as has been *repeatedly* requested you should use subject lines
matching the style for the subsystem.  

Please also remember to CC people on the cover letters for serieses so
they know if there's dependencies (if the series is actually a bunch of
separate patches consider sending that way).

Patch
diff mbox

diff --git a/include/sound/soc.h b/include/sound/soc.h
index fcb312b..5ca7ec0 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -1418,13 +1418,13 @@  static inline void snd_soc_initialize_card_lists(struct snd_soc_card *card)
 static inline bool snd_soc_volsw_is_stereo(struct soc_mixer_control *mc)
 {
 	if (mc->reg == mc->rreg && mc->shift == mc->rshift)
-		return 0;
+		return false;
 	/*
 	 * mc->reg == mc->rreg && mc->shift != mc->rshift, or
 	 * mc->reg != mc->rreg means that the control is
 	 * stereo (bits in one register or in two registers)
 	 */
-	return 1;
+	return true;
 }
 
 static inline unsigned int snd_soc_enum_val_to_item(struct soc_enum *e,