Re: [PATCH] ftrace: Remove a superfluous check

From: Steven Rostedt
Date: Thu Mar 29 2012 - 13:14:59 EST


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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/