diff mbox

^= usage

Message ID 20151208041038.GA15636@thinkpad.swarthmore.edu (mailing list archive)
State New, archived
Headers show

Commit Message

Michael McConville Dec. 8, 2015, 4:10 a.m. UTC
Just a minor simplification.

Signed-off-by: Michael McConville <mmcco@mykolab.com>

---

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- sound/soc/samsung/i2s.c.orig	Mon Oct  5 21:39:03 2015
+++ sound/soc/samsung/i2s.c	Mon Dec  7 23:04:02 2015
@@ -623,10 +623,7 @@  static int i2s_set_fmt(struct snd_soc_dai *dai,
 	case SND_SOC_DAIFMT_NB_NF:
 		break;
 	case SND_SOC_DAIFMT_NB_IF:
-		if (tmp & lrp_rlow)
-			tmp &= ~lrp_rlow;
-		else
-			tmp |= lrp_rlow;
+		tmp ^= lrp_rlow;
 		break;
 	default:
 		dev_err(&i2s->pdev->dev, "Polarity not supported\n");