aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2011-09-17 13:59:54 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-21 09:07:32 -0400
commitd12f51aa7bd43667078d021ba89e6ed8bfe42432 (patch)
treeb52894e95f0b473f3de155c69493590435577170 /drivers
parent331423c46df9df000586c08223be95a34a881cc0 (diff)
[media] m920x: fix ERROR: do not use assignment in if condition
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/dvb-usb/m920x.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/drivers/media/dvb/dvb-usb/m920x.c b/drivers/media/dvb/dvb-usb/m920x.c
index c3e461e9fa71..a1e1287c949e 100644
--- a/drivers/media/dvb/dvb-usb/m920x.c
+++ b/drivers/media/dvb/dvb-usb/m920x.c
@@ -501,9 +501,10 @@ static int m920x_mt352_frontend_attach(struct dvb_usb_adapter *adap)
501{ 501{
502 deb("%s\n",__func__); 502 deb("%s\n",__func__);
503 503
504 if ((adap->fe_adap[0].fe = dvb_attach(mt352_attach, 504 adap->fe_adap[0].fe = dvb_attach(mt352_attach,
505 &m920x_mt352_config, 505 &m920x_mt352_config,
506 &adap->dev->i2c_adap)) == NULL) 506 &adap->dev->i2c_adap);
507 if ((adap->fe_adap[0].fe) == NULL)
507 return -EIO; 508 return -EIO;
508 509
509 return 0; 510 return 0;
@@ -513,9 +514,10 @@ static int m920x_tda10046_08_frontend_attach(struct dvb_usb_adapter *adap)
513{ 514{
514 deb("%s\n",__func__); 515 deb("%s\n",__func__);
515 516
516 if ((adap->fe_adap[0].fe = dvb_attach(tda10046_attach, 517 adap->fe_adap[0].fe = dvb_attach(tda10046_attach,
517 &m920x_tda10046_08_config, 518 &m920x_tda10046_08_config,
518 &adap->dev->i2c_adap)) == NULL) 519 &adap->dev->i2c_adap);
520 if ((adap->fe_adap[0].fe) == NULL)
519 return -EIO; 521 return -EIO;
520 522
521 return 0; 523 return 0;
@@ -525,9 +527,10 @@ static int m920x_tda10046_0b_frontend_attach(struct dvb_usb_adapter *adap)
525{ 527{
526 deb("%s\n",__func__); 528 deb("%s\n",__func__);
527 529
528 if ((adap->fe_adap[0].fe = dvb_attach(tda10046_attach, 530 adap->fe_adap[0].fe = dvb_attach(tda10046_attach,
529 &m920x_tda10046_0b_config, 531 &m920x_tda10046_0b_config,
530 &adap->dev->i2c_adap)) == NULL) 532 &adap->dev->i2c_adap);
533 if ((adap->fe_adap[0].fe) == NULL)
531 return -EIO; 534 return -EIO;
532 535
533 return 0; 536 return 0;