^= usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just a minor simplification.

Signed-off-by: Michael McConville <mmcco@xxxxxxxxxxx>

---

--- 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");
--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux