From 25e9378b0d52d25ff4d08f9acf2c43a60f775906 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 4 Oct 2003 21:29:54 -0700 Subject: [PATCH] [PATCH] Rearrange error handling in fs_pipe.c a bit From: Scharfe clean up the error handling in pipefs a little bit, shrinking pipe.o by whopping 4 bytes! :) --- fs/pipe.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/pipe.c b/fs/pipe.c index 5ff6f6ee798a3..e75a087c84da3 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -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); - err = PTR_ERR(pipe_mnt); - if (IS_ERR(pipe_mnt)) + if (IS_ERR(pipe_mnt)) { + err = PTR_ERR(pipe_mnt); unregister_filesystem(&pipe_fs_type); - else - err = 0; + } } return err; } -- 2.53.0