]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/dvb/dvb-usb/az6027.c
V4L/DVB: media/az6027: handle -EIO failure
[net-next-2.6.git] / drivers / media / dvb / dvb-usb / az6027.c
index baaa301c5768d562f5f99ebf81042beb9300e688..6681ac1c56e35763983167409490b315e8da9ad0 100644 (file)
@@ -701,10 +701,7 @@ static int az6027_ci_poll_slot_status(struct dvb_ca_en50221 *ca, int slot, int o
        } else
                ret = 0;
 
-       if (b[0] == 0) {
-               ret = 0;
-
-       } else if (b[0] == 1) {
+       if (!ret && b[0] == 1) {
                ret = DVB_CA_EN50221_POLL_CAM_PRESENT |
                      DVB_CA_EN50221_POLL_CAM_READY;
        }