[media] pvr2: fix minor storage
authorAlan Cox <alan@linux.intel.com>
Thu, 25 Oct 2012 13:38:21 +0000 (10:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 21 Nov 2012 20:10:33 +0000 (18:10 -0200)
This should have break statements in it.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/pvrusb2/pvrusb2-hdw.c

index fb828ba1dbbe8044e09cf33a5b3269ef09417254..299751a8b06bc323bb347217235bf6486b2e6488 100644 (file)
@@ -3563,9 +3563,9 @@ void pvr2_hdw_v4l_store_minor_number(struct pvr2_hdw *hdw,
                                     enum pvr2_v4l_type index,int v)
 {
        switch (index) {
-       case pvr2_v4l_type_video: hdw->v4l_minor_number_video = v;
-       case pvr2_v4l_type_vbi: hdw->v4l_minor_number_vbi = v;
-       case pvr2_v4l_type_radio: hdw->v4l_minor_number_radio = v;
+       case pvr2_v4l_type_video: hdw->v4l_minor_number_video = v;break;
+       case pvr2_v4l_type_vbi: hdw->v4l_minor_number_vbi = v;break;
+       case pvr2_v4l_type_radio: hdw->v4l_minor_number_radio = v;break;
        default: break;
        }
 }