[media] saa7164: saa7164_vbi_stop_port() returns linux error codes
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Apr 2012 05:50:45 +0000 (02:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 26 Apr 2012 18:28:31 +0000 (15:28 -0300)
The saa7164_vbi_stop_port() changes the SAA_ERR_ALREADY_STOPPED result
code to -EIO before returning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7164/saa7164-vbi.c

index 273cf80..d8e6c8f 100644 (file)
@@ -952,7 +952,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port)
 
                /* Stop the hardware, regardless */
                result = saa7164_vbi_stop_port(port);
-               if ((result != SAA_OK) && (result != SAA_ERR_ALREADY_STOPPED)) {
+               if (result != SAA_OK) {
                        printk(KERN_ERR "%s() pause/forced stop transition "
                                "failed, res = 0x%x\n", __func__, result);
                }
@@ -971,7 +971,7 @@ static int saa7164_vbi_start_streaming(struct saa7164_port *port)
                /* Stop the hardware, regardless */
                result = saa7164_vbi_acquire_port(port);
                result = saa7164_vbi_stop_port(port);
-               if ((result != SAA_OK) && (result != SAA_ERR_ALREADY_STOPPED)) {
+               if (result != SAA_OK) {
                        printk(KERN_ERR "%s() run/forced stop transition "
                                "failed, res = 0x%x\n", __func__, result);
                }