[media] em28xx: remove dead code
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Jun 2015 11:03:01 +0000 (08:03 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 5 Jun 2015 11:03:01 +0000 (08:03 -0300)
As reported by smatch:
drivers/media/usb/em28xx/em28xx-video.c:842 get_ressource() info: ignoring unreachable code.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/em28xx/em28xx-video.c

index 14eba9c65de39687941a23c99b33c3c8ad336c76..4397ce5e78dff2f3aeb83adb214ac4329a9ed50e 100644 (file)
@@ -839,7 +839,6 @@ static int get_ressource(enum v4l2_buf_type f_type)
                return EM28XX_RESOURCE_VBI;
        default:
                BUG();
-               return 0;
        }
 }