From: Jan Engelhardt Date: Tue, 22 Jan 2008 19:45:30 +0000 (+0100) Subject: IB/ipath: Remove unnecessary cast X-Git-Tag: v2.6.25-rc1~1234^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f7fca1e8a8eeb6660396327b48995e3d9a7b6dc2;p=linux-2.6-omap-h63xx.git IB/ipath: Remove unnecessary cast Signed-off-by: Jan Engelhardt Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index 52325e009a1..23faba9d21e 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c @@ -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;