Re: [PATCH 08/12] printk: Replace strncmp with str_has_prefix

From: Steven Rostedt
Date: Thu Aug 01 2019 - 12:40:42 EST


On Thu, 01 Aug 2019 09:19:04 -0700
Joe Perches <joe@xxxxxxxxxxx> wrote:

> > I find that checkpatch.pl forbids assignment in if condition.
> > So this seems to be infeasible...
>
> checkpatch is a stupid script and doesn't forbid
> anything. It's just a suggestion guide.
>
> Ignore checkpatch when you know better.

And this is coming from the checkpatch.pl maintainer ;-)

-- Steve