[media] saa7146: remove return after BUG()
As reported by smatch: drivers/media/common/saa7146/saa7146_fops.c:314 fops_mmap() info: ignoring unreachable code. drivers/media/common/saa7146/saa7146_fops.c:402 fops_read() info: ignoring unreachable code. drivers/media/common/saa7146/saa7146_fops.c:426 fops_write() info: ignoring unreachable code. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
84babee8fe
commit
ae64b5ab4a
1 changed files with 0 additions and 3 deletions
|
@ -311,7 +311,6 @@ static int fops_mmap(struct file *file, struct vm_area_struct * vma)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
BUG();
|
BUG();
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mutex_lock_interruptible(vdev->lock))
|
if (mutex_lock_interruptible(vdev->lock))
|
||||||
|
@ -399,7 +398,6 @@ static ssize_t fops_read(struct file *file, char __user *data, size_t count, lof
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
default:
|
default:
|
||||||
BUG();
|
BUG();
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -423,7 +421,6 @@ static ssize_t fops_write(struct file *file, const char __user *data, size_t cou
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
default:
|
default:
|
||||||
BUG();
|
BUG();
|
||||||
return -EINVAL;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue