diff options
-rw-r--r-- | drivers/infiniband/hw/qib/qib_file_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c b/drivers/infiniband/hw/qib/qib_file_ops.c index 6b11645edf35..cef5d676120a 100644 --- a/drivers/infiniband/hw/qib/qib_file_ops.c +++ b/drivers/infiniband/hw/qib/qib_file_ops.c | |||
@@ -1722,7 +1722,7 @@ static int qib_close(struct inode *in, struct file *fp) | |||
1722 | 1722 | ||
1723 | mutex_lock(&qib_mutex); | 1723 | mutex_lock(&qib_mutex); |
1724 | 1724 | ||
1725 | fd = (struct qib_filedata *) fp->private_data; | 1725 | fd = fp->private_data; |
1726 | fp->private_data = NULL; | 1726 | fp->private_data = NULL; |
1727 | rcd = fd->rcd; | 1727 | rcd = fd->rcd; |
1728 | if (!rcd) { | 1728 | if (!rcd) { |
@@ -1808,7 +1808,7 @@ static int qib_ctxt_info(struct file *fp, struct qib_ctxt_info __user *uinfo) | |||
1808 | struct qib_ctxtdata *rcd = ctxt_fp(fp); | 1808 | struct qib_ctxtdata *rcd = ctxt_fp(fp); |
1809 | struct qib_filedata *fd; | 1809 | struct qib_filedata *fd; |
1810 | 1810 | ||
1811 | fd = (struct qib_filedata *) fp->private_data; | 1811 | fd = fp->private_data; |
1812 | 1812 | ||
1813 | info.num_active = qib_count_active_units(); | 1813 | info.num_active = qib_count_active_units(); |
1814 | info.unit = rcd->dd->unit; | 1814 | info.unit = rcd->dd->unit; |