mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
drivers/infiniband: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <[email protected]> Acked-by: Ralph Campbell <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
40b3be3fca
commit
ea3f0e6bc5
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue