Skip to content

Commit

Permalink
fix(init): remove unused code (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Apr 20, 2018
1 parent 1a89469 commit 0c62bda
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions initramfs/src/init/pkg/mount/cgroups/cgroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ func Mount(s string) error {
if err := os.MkdirAll(p, os.ModeDir); err != nil {
return fmt.Errorf("failed to create %s: %s", p, err.Error())
}
switch c {
case "memory":
if err := enableMemoryHierarchy(target); err != nil {
return fmt.Errorf("enable memory.use_hierarchy: %s", err.Error())
}
default:
}
if err := unix.Mount("defaults", p, "cgroup", 0, ""); err != nil {
return fmt.Errorf("failed to mount %s: %s", p, err.Error())
}
Expand Down

0 comments on commit 0c62bda

Please sign in to comment.