[PATCH] drivers/media/video/mt9v022.c (2.6.35.4): Fixed compilation warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ionut Gabriel Popescu <poyo_vl@xxxxxxxxx>
Kernel: 2.6.35.4

The drivers/media/video/mt9v022.c file, on line 405, tries a "case 0" o a 
v4l2_mbus_pixelcode enum which don't have an 0 value element, so I got a compile 
warning. That "case" is useless so it can be removed. 


Signed-off-by: Ionut Gabriel Popescu <poyo_vl@xxxxxxxxx>
---

--- a/drivers/media/video/mt9v022.c    2010-08-27 02:47:12.000000000 +0300
+++ b/drivers/media/video/mt9v022.c    2010-09-01 16:12:00.704505851 +0300
@@ -402,9 +402,6 @@
         if (mt9v022->model != V4L2_IDENT_MT9V022IX7ATC)
             return -EINVAL;
         break;
-    case 0:
-        /* No format change, only geometry */
-        break;
     default:
         return -EINVAL;
     }


      
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux