diff options
Diffstat (limited to 'drivers/infiniband/hw/ipath')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_sysfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_sysfs.c b/drivers/infiniband/hw/ipath/ipath_sysfs.c index aa27ca9f03b1..e2a65349c824 100644 --- a/drivers/infiniband/hw/ipath/ipath_sysfs.c +++ b/drivers/infiniband/hw/ipath/ipath_sysfs.c | |||
@@ -770,7 +770,8 @@ int ipath_device_create_group(struct device *dev, struct ipath_devdata *dd) | |||
770 | if (ret) | 770 | if (ret) |
771 | goto bail_attrs; | 771 | goto bail_attrs; |
772 | 772 | ||
773 | sysfs_remove_group(&dev->kobj, &dev_counter_attr_group); | 773 | return 0; |
774 | |||
774 | bail_attrs: | 775 | bail_attrs: |
775 | sysfs_remove_group(&dev->kobj, &dev_attr_group); | 776 | sysfs_remove_group(&dev->kobj, &dev_attr_group); |
776 | bail: | 777 | bail: |