Skip to content

Commit

Permalink
drivers/infiniband: Remove unnecessary casts of private_data
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
Joe Perches authored and Jiri Kosina committed Sep 23, 2010
1 parent 40b3be3 commit ea3f0e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/infiniband/hw/qib/qib_file_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1722,7 +1722,7 @@ static int qib_close(struct inode *in, struct file *fp)

mutex_lock(&qib_mutex);

fd = (struct qib_filedata *) fp->private_data;
fd = fp->private_data;
fp->private_data = NULL;
rcd = fd->rcd;
if (!rcd) {
Expand Down Expand Up @@ -1808,7 +1808,7 @@ static int qib_ctxt_info(struct file *fp, struct qib_ctxt_info __user *uinfo)
struct qib_ctxtdata *rcd = ctxt_fp(fp);
struct qib_filedata *fd;

fd = (struct qib_filedata *) fp->private_data;
fd = fp->private_data;

info.num_active = qib_count_active_units();
info.unit = rcd->dd->unit;
Expand Down

0 comments on commit ea3f0e6

Please sign in to comment.