Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
arch
/
tile
/
kernel
/
sysfs.c
diff --git
a/kernel/arch/tile/kernel/sysfs.c
b/kernel/arch/tile/kernel/sysfs.c
index
a3ed12f
..
825867c
100644
(file)
--- a/
kernel/arch/tile/kernel/sysfs.c
+++ b/
kernel/arch/tile/kernel/sysfs.c
@@
-198,16
+198,13
@@
static int hv_stats_device_add(struct device *dev, struct subsys_interface *sif)
return err;
}
return err;
}
-static
int
hv_stats_device_remove(struct device *dev,
- struct subsys_interface *sif)
+static
void
hv_stats_device_remove(struct device *dev,
+
struct subsys_interface *sif)
{
int cpu = dev->id;
{
int cpu = dev->id;
- if (!cpu_online(cpu))
- return 0;
-
- sysfs_remove_file(&dev->kobj, &dev_attr_hv_stats.attr);
- return 0;
+ if (cpu_online(cpu))
+ sysfs_remove_file(&dev->kobj, &dev_attr_hv_stats.attr);
}
}