IB/ipath: Remove unnecessary cast
authorJan Engelhardt <jengelh@computergmbh.de>
Tue, 22 Jan 2008 19:45:30 +0000 (20:45 +0100)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:17:46 +0000 (14:17 -0800)
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_fs.c

index 52325e009a1f753e78d86d1e9bd58f37b4f4f0a1..23faba9d21eb34aab1337782fecd24f7a3871ec8 100644 (file)
@@ -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;