Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235808
b: refs/heads/master
c: b737f3b
h: refs/heads/master
v: v3
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Feb 4, 2011
1 parent 8430649 commit f5d2b9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6911e7e4a6bed8ac7989137387f6a33ef65c2b56
refs/heads/master: b737f3b8cf2425f8e5f23ea31bbb4d377c41be7f
11 changes: 3 additions & 8 deletions trunk/drivers/staging/easycap/easycap_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ int rc;
JOT(4, "\n");
SAY("==========OPEN=========\n");

peasycap = NULL;
/*---------------------------------------------------------------------------*/
#ifndef EASYCAP_IS_VIDEODEV_CLIENT
if (NULL == inode) {
Expand Down Expand Up @@ -851,7 +850,7 @@ if (NULL != peasycap->purb_video_head) {
list_for_each_safe(plist_head, plist_next, peasycap->purb_video_head) {
pdata_urb = list_entry(plist_head, struct data_urb, list_head);
if (NULL != pdata_urb) {
kfree(pdata_urb); pdata_urb = NULL;
kfree(pdata_urb); pdata_urb = NULL;
peasycap->allocation_video_struct -=
sizeof(struct data_urb);
m++;
Expand Down Expand Up @@ -2649,8 +2648,6 @@ struct page *page;
struct easycap *peasycap;

retcode = VM_FAULT_NOPAGE;
pbuf = NULL;
page = NULL;

if (NULL == pvma) {
SAY("pvma is NULL\n");
Expand Down Expand Up @@ -2686,16 +2683,15 @@ if (NULL == peasycap) {
pbuf = peasycap->frame_buffer[k][m].pgo;
if (NULL == pbuf) {
SAM("ERROR: pbuf is NULL\n");
goto finish;
return retcode;
}
page = virt_to_page(pbuf);
if (NULL == page) {
SAM("ERROR: page is NULL\n");
goto finish;
return retcode;
}
get_page(page);
/*---------------------------------------------------------------------------*/
finish:
if (NULL == page) {
SAM("ERROR: page is NULL after get_page(page)\n");
} else {
Expand Down Expand Up @@ -3192,7 +3188,6 @@ if (NULL == pusb_interface) {
SAY("ERROR: pusb_interface is NULL\n");
return -EFAULT;
}
peasycap = NULL;
/*---------------------------------------------------------------------------*/
/*
* GET POINTER TO STRUCTURE usb_device
Expand Down

0 comments on commit f5d2b9c

Please sign in to comment.