Skip to content

Commit

Permalink
IB/ipath: Remove unnecessary cast
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Jan Engelhardt authored and Roland Dreier committed Jan 25, 2008
1 parent 1cf18d5 commit f7fca1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/infiniband/hw/ipath/ipath_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ static int create_device_files(struct super_block *sb,

snprintf(unit, sizeof unit, "%02d", dd->ipath_unit);
ret = create_file(unit, S_IFDIR|S_IRUGO|S_IXUGO, sb->s_root, &dir,
(struct file_operations *) &simple_dir_operations,
dd);
&simple_dir_operations, dd);
if (ret) {
printk(KERN_ERR "create_file(%s) failed: %d\n", unit, ret);
goto bail;
Expand Down

0 comments on commit f7fca1e

Please sign in to comment.