Skip to contentSkip to conversation

Add missing else case.

PATCH New Hans Petter Selasky 1 participant 1 message Aug 3, 2012 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add missing else case.

Quoted 1 line

From 59306435992d9349f10ad82a8adf14d98becbbe8 Mon Sep 17 00:00:00 2001

From: Hans Petter Selasky <[email protected]>
Date: Fri, 3 Aug 2012 08:34:05 +0200
Subject: [PATCH] Add missing else case.

---
 drivers/media/common/tuners/tuner-xc2028.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/common/tuners/tuner-xc2028.c +2 -2
index ea0550e..49e63ec 100644
@@ -1414,8 +1414,8 @@ static int xc2028_set_config(struct dvb_frontend *fe, void *priv_cfg)
 			tuner_err("Failed to request firmware %s\n",
 				  priv->fname);
 			priv->state = XC2028_NODEV;
-		}
-		priv->state = XC2028_WAITING_FIRMWARE;
+		} else
+			priv->state = XC2028_WAITING_FIRMWARE;
 	}
 	mutex_unlock(&priv->lock);
 
Signature · 1 line
1.7.10.1