]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
IB/qib: Remove unnecessary casts of private_data
authorJoe Perches <joe@perches.com>
Sun, 5 Sep 2010 01:52:43 +0000 (01:52 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 6 Oct 2010 21:43:51 +0000 (14:43 -0700)
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/qib/qib_file_ops.c

index 6b11645edf35532506edc38076148b3ccb85c6df..cef5d676120a542f043ca039f26b581a68a3a86a 100644 (file)
@@ -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;