[PATCH] Linux-2.5.68 - Fix DBG after return statement in drives/media/video/cpia_pp.c

From: Gabriel Devenyi (devenyga@mcmaster.ca)
Date: Thu May 01 2003 - 14:42:37 EST


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch applies to 2.5.68. It fixes a bug listed on kbugs.org, a DBG statement is after a return statement, so it never executes.
- --
Building the Future,
Gabriel Devenyi
devenyga@mcmaster.ca

- ---FILE----

- --- linux-2.5.68/drivers/media/video/cpia_pp.c 2003-04-19 22:48:49.000000000 -0400
+++ linux-2.5.68-changed/drivers/media/video/cpia_pp.c 2003-05-01 15:00:36.000000000 -0400
@@ -605,8 +605,8 @@
                         return -EINVAL;
                 }
                 if((err = ReadPacket(cam, buffer, 8)) < 0) {
- - return err;
                         DBG("Error reading command result\n");
+ return err;
                 }
                 memcpy(data, buffer, databytes);
         } else if(command[0] == DATA_OUT) {

- ---ENDFILE----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+sXiy7I5UBdiZaF4RAvMXAJ9xRpCUS7vw9Rq9hmSfFgh6XQeqEQCeM5Dg
BXxyNJdXBytaGa/XtjyY1is=
=15rS
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Apr 30 2003 - 22:00:36 EST