Skip to contentSkip to conversation

tuner-xc2028: fix "=" vs "==" typo

PATCH New Dan Carpenter 1 participant 1 message Jul 21, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tuner-xc2028: fix "=" vs "==" typo

We intended to do a compare here, not an assignment.

---
Static analysis bug. I don't own the hardware.

drivers/media/common/tuners/tuner-xc2028.c +1 -1
index f88f948..9e60285 100644
@@ -756,7 +756,7 @@ retry:
 	 * No need to reload base firmware if it matches and if the tuner
 	 * is not at sleep mode
 	 */
-	if ((priv->state = XC2028_ACTIVE) &&
+	if ((priv->state = XC2028_ACTIVE) &&
 	    (((BASE | new_fw.type) & BASE_TYPES) =
 	    (priv->cur_fw.type & BASE_TYPES))) {
 		tuner_dbg("BASE firmware not changed.\n");