diff options
author | Joe Perches <joe@perches.com> | 2010-09-05 05:52:43 +0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-10-07 01:43:51 +0400 |
commit | 0f2f930a67c763a71aacfdbc76de9a76de7d1a9e (patch) | |
tree | 3927e1854966c6bad57312635f5ca2f863102ad6 /drivers/infiniband | |
parent | 252a52aa4fa22a668f019e55b3aac3ff71ec1c29 (diff) | |
download | linux-0f2f930a67c763a71aacfdbc76de9a76de7d1a9e.tar.xz |
IB/qib: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-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) mutex_lock(&qib_mutex); - fd = (struct qib_filedata *) fp->private_data; + fd = fp->private_data; fp->private_data = NULL; rcd = fd->rcd; if (!rcd) { @@ -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; |