lkml.org 
[lkml]   [2012]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] ftrace: Remove a superfluous check
From
Date
On Thu, 2012-03-29 at 19:03 +0200, John Kacur wrote:

> >
> > mutex_lock(&ftrace_lock);
> >
> > - if (unlikely(ftrace_disabled))
> > - goto out_unlock;
> > -
> > ret = __register_ftrace_function(ops);
> > if (!ret)
> > ret = ftrace_startup(ops, 0);
> >
> > -
> > out_unlock:
> > mutex_unlock(&ftrace_lock);
> > return ret;
> > --
>
> If you're going to do this, then you can drop the label too.
>

Yeah, can you resubmit with John's suggestion.

Thanks,

-- Steve




\
 
 \ /
  Last update: 2012-03-29 19:17    [W:0.080 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site