From: Joe Perches <joe@perches.com>
To: Hariprasad Kelam <hariprasad.kelam@gmail.com>,
Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] slimbus: fix duplicated argument to ||
Date: Sun, 21 Jul 2019 11:04:04 -0700 [thread overview]
Message-ID: <4154c43331e4d1d361db41194587d3d41cf991b0.camel@perches.com> (raw)
In-Reply-To: <20190721174715.GA10747@hari-Inspiron-1545>
On Sun, 2019-07-21 at 23:17 +0530, Hariprasad Kelam wrote:
> Remove duplicate argument SLIM_MSG_MC_REQUEST_CLEAR_INFORMATION.
>
> fix below issue reported by coccicheck
> ./drivers/slimbus/slimbus.h:440:3-46: duplicated argument to && or ||
>
> Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
> ---
> drivers/slimbus/slimbus.h | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/slimbus/slimbus.h b/drivers/slimbus/slimbus.h
> index 9be4108..46a6441 100644
> --- a/drivers/slimbus/slimbus.h
> +++ b/drivers/slimbus/slimbus.h
> @@ -438,8 +438,7 @@ static inline bool slim_tid_txn(u8 mt, u8 mc)
> return (mt == SLIM_MSG_MT_CORE &&
> (mc == SLIM_MSG_MC_REQUEST_INFORMATION ||
> mc == SLIM_MSG_MC_REQUEST_CLEAR_INFORMATION ||
> - mc == SLIM_MSG_MC_REQUEST_VALUE ||
> - mc == SLIM_MSG_MC_REQUEST_CLEAR_INFORMATION));
> + mc == SLIM_MSG_MC_REQUEST_VALUE));
> }
Perhaps this was intended to be
mc == SLIM_MSG_MC_REQUEST_CHANGE_VALUE ?
prev parent reply other threads:[~2019-07-21 18:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-21 17:47 Hariprasad Kelam
2019-07-21 18:04 ` Joe Perches [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4154c43331e4d1d361db41194587d3d41cf991b0.camel@perches.com \
--to=joe@perches.com \
--cc=alsa-devel@alsa-project.org \
--cc=hariprasad.kelam@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=srinivas.kandagatla@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®