All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: fs: remove now stale label in anon_inode_init()
       [not found] <20140326004510.D4C236604A2@gitolite.kernel.org>
@ 2014-03-26 17:33 ` Dave Jones
  0 siblings, 0 replies; only message in thread
From: Dave Jones @ 2014-03-26 17:33 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Linus Torvalds

On Wed, Mar 26, 2014 at 12:45:10AM +0000, Linux Kernel wrote:
 > Gitweb:     http://git.kernel.org/linus/;a=commit;h=fce7fc79c8f7188dfc5eafa1b937bcc3c5a4c2f5
 > Commit:     fce7fc79c8f7188dfc5eafa1b937bcc3c5a4c2f5
 > Parent:     d6f2589ad561aa5fa39f347eca6942668b7560a1
 > Author:     Linus Torvalds <torvalds@linux-foundation.org>
 > AuthorDate: Tue Mar 25 17:43:34 2014 -0700
 > Committer:  Linus Torvalds <torvalds@linux-foundation.org>
 > CommitDate: Tue Mar 25 17:43:34 2014 -0700
 > 
 >     fs: remove now stale label in anon_inode_init()
 >     
 >     The previous commit removed the register_filesystem() call and the
 >     associated error handling, but left the label for the error path that no
 >     longer exists.  Remove that too.
 >     
 >     Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
 > ---
 >  fs/anon_inodes.c |    1 -
 >  1 files changed, 0 insertions(+), 1 deletions(-)
 > 
 > diff --git a/fs/anon_inodes.c b/fs/anon_inodes.c
 > index 4b4543b..42fcc46 100644
 > --- a/fs/anon_inodes.c
 > +++ b/fs/anon_inodes.c
 > @@ -186,7 +186,6 @@ static int __init anon_inode_init(void)
 >  
 >  err_unregister_filesystem:
 >  	unregister_filesystem(&anon_inode_fs_type);
 > -err_exit:
 >  	panic(KERN_ERR "anon_inode_init() failed (%d)\n", error);
 
If we're about to panic, is there any point in doing the unregister ?
Looks like that function could just be..

        anon_inode_mnt = kern_mount(&anon_inode_fs_type);
        if (IS_ERR(anon_inode_mnt)) { 
                error = PTR_ERR(anon_inode_mnt);
                panic(KERN_ERR "anon_inode_init() failed (%d)\n", error);
        }       
        return 0;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-03-26 17:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20140326004510.D4C236604A2@gitolite.kernel.org>
2014-03-26 17:33 ` fs: remove now stale label in anon_inode_init() Dave Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.