From: Mauro Carvalho Chehab Date: Fri, 5 Jun 2015 11:03:01 +0000 (-0300) Subject: [media] em28xx: remove dead code X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7fdc5561ca705dbecdabbcc33165c73330e4d13b;p=linux-beck.git [media] em28xx: remove dead code As reported by smatch: drivers/media/usb/em28xx/em28xx-video.c:842 get_ressource() info: ignoring unreachable code. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/em28xx/em28xx-video.c b/drivers/media/usb/em28xx/em28xx-video.c index 14eba9c65de3..4397ce5e78df 100644 --- a/drivers/media/usb/em28xx/em28xx-video.c +++ b/drivers/media/usb/em28xx/em28xx-video.c @@ -839,7 +839,6 @@ static int get_ressource(enum v4l2_buf_type f_type) return EM28XX_RESOURCE_VBI; default: BUG(); - return 0; } }