projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0779bf2
)
BUG_ON conversion for drivers/media/video/pwc/pwc-if.c
author
Eric Sesterhenn
<snakebyte@gmx.de>
Thu, 30 Nov 2006 04:26:46 +0000
(
05:26
+0100)
committer
Adrian Bunk
<bunk@stusta.de>
Thu, 30 Nov 2006 04:26:46 +0000
(
05:26
+0100)
This patch converts a if () BUG(); construct to BUG_ON();
which occupies less space, uses unlikely and is safer when
BUG() is disabled.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/media/video/pwc/pwc-if.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/media/video/pwc/pwc-if.c
b/drivers/media/video/pwc/pwc-if.c
index 46c1148308843a4d8ed3e0db02d6f20fd8f73c76..e8db6e58d390167006810e2fc233547527bd5b90 100644
(file)
--- a/
drivers/media/video/pwc/pwc-if.c
+++ b/
drivers/media/video/pwc/pwc-if.c
@@
-1095,8
+1095,7
@@
static int pwc_video_open(struct inode *inode, struct file *file)
PWC_DEBUG_OPEN(">> video_open called(vdev = 0x%p).\n", vdev);
pdev = (struct pwc_device *)vdev->priv;
- if (pdev == NULL)
- BUG();
+ BUG_ON(!pdev);
if (pdev->vopen) {
PWC_DEBUG_OPEN("I'm busy, someone is using the device.\n");
return -EBUSY;