Commit f7fca1e8 authored by Jan Engelhardt's avatar Jan Engelhardt Committed by Roland Dreier
Browse files

IB/ipath: Remove unnecessary cast

parent 1cf18d5a
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -238,8 +238,7 @@ static int create_device_files(struct super_block *sb,


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