Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204223
b: refs/heads/master
c: 660bddd
h: refs/heads/master
i:
  204221: d93d874
  204219: addf489
  204215: 49dd6c9
  204207: 7c40795
  204191: 3ffc2ec
  204159: 7a82e16
v: v3
  • Loading branch information
Cyril Jayaprakash authored and James Bottomley committed Jul 28, 2010
1 parent b599f74 commit ec203f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 4b6c83f57874c2ac10b450ba0f57db0a0f22db67
refs/heads/master: 660bdddb52843d361e47c30294366ae0deac821b
7 changes: 3 additions & 4 deletions trunk/drivers/scsi/pmcraid.c
Original file line number Diff line number Diff line change
Expand Up @@ -3599,8 +3599,7 @@ static int pmcraid_chr_open(struct inode *inode, struct file *filep)
*/
static int pmcraid_chr_release(struct inode *inode, struct file *filep)
{
struct pmcraid_instance *pinstance =
((struct pmcraid_instance *)filep->private_data);
struct pmcraid_instance *pinstance = filep->private_data;

filep->private_data = NULL;
fasync_helper(-1, filep, 0, &pinstance->aen_queue);
Expand All @@ -3619,7 +3618,7 @@ static int pmcraid_chr_fasync(int fd, struct file *filep, int mode)
struct pmcraid_instance *pinstance;
int rc;

pinstance = (struct pmcraid_instance *)filep->private_data;
pinstance = filep->private_data;
mutex_lock(&pinstance->aen_queue_lock);
rc = fasync_helper(fd, filep, mode, &pinstance->aen_queue);
mutex_unlock(&pinstance->aen_queue_lock);
Expand Down Expand Up @@ -4110,7 +4109,7 @@ static long pmcraid_chr_ioctl(
return retval;
}

pinstance = (struct pmcraid_instance *)filep->private_data;
pinstance = filep->private_data;

if (!pinstance) {
pmcraid_info("adapter instance is not found\n");
Expand Down

0 comments on commit ec203f4

Please sign in to comment.