aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-24 15:23:30 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-09-26 05:47:57 -0400
commit84babee8fea9fc4fae2b5414ce71db1902eb7b7b (patch)
tree2791c201287e7dc0b49940ace08b2aac90d5d2e0 /drivers/media
parente2392d347e1dbb4987beaaee0f87653480fcddc8 (diff)
[media] cx88: remove return after BUG()
As reported by smatch: drivers/media/pci/cx88/cx88-video.c:699 get_queue() info: ignoring unreachable code. drivers/media/pci/cx88/cx88-video.c:714 get_resource() info: ignoring unreachable code. drivers/media/pci/cx88/cx88-video.c:815 video_read() info: ignoring unreachable code. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/pci/cx88/cx88-video.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/pci/cx88/cx88-video.c b/drivers/media/pci/cx88/cx88-video.c
index ed8cb9037b6f..ce27e6d4f16e 100644
--- a/drivers/media/pci/cx88/cx88-video.c
+++ b/drivers/media/pci/cx88/cx88-video.c
@@ -696,7 +696,6 @@ static struct videobuf_queue *get_queue(struct file *file)
696 return &fh->vbiq; 696 return &fh->vbiq;
697 default: 697 default:
698 BUG(); 698 BUG();
699 return NULL;
700 } 699 }
701} 700}
702 701
@@ -711,7 +710,6 @@ static int get_resource(struct file *file)
711 return RESOURCE_VBI; 710 return RESOURCE_VBI;
712 default: 711 default:
713 BUG(); 712 BUG();
714 return 0;
715 } 713 }
716} 714}
717 715
@@ -812,7 +810,6 @@ video_read(struct file *file, char __user *data, size_t count, loff_t *ppos)
812 file->f_flags & O_NONBLOCK); 810 file->f_flags & O_NONBLOCK);
813 default: 811 default:
814 BUG(); 812 BUG();
815 return 0;
816 } 813 }
817} 814}
818 815