Commit 25e9378b authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Rearrange error handling in fs_pipe.c a bit

From:  Scharfe <l.s.r@web.de>

  clean up the error handling in pipefs a little bit,
  shrinking pipe.o by whopping 4 bytes! :)
parent 1bc797a3
......@@ -641,11 +641,10 @@ static int __init init_pipe_fs(void)
int err = register_filesystem(&pipe_fs_type);
if (!err) {
pipe_mnt = kern_mount(&pipe_fs_type);
if (IS_ERR(pipe_mnt)) {
err = PTR_ERR(pipe_mnt);
if (IS_ERR(pipe_mnt))
unregister_filesystem(&pipe_fs_type);
else
err = 0;
}
}
return err;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment