From: Leon Romanovsky <leon@kernel.org>
To: Bernard Metzler <bmt@zurich.ibm.com>,
Jason Gunthorpe <jgg@ziepe.ca>,
linux-rdma@vger.kernel.org,
Colin Ian King <colin.i.king@gmail.com>
Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH][next] RDMA/siw: replace redundant ternary operator with just rv
Date: Mon, 12 May 2025 06:20:50 -0400 [thread overview]
Message-ID: <174704525028.584839.4314624447518486154.b4-ty@kernel.org> (raw)
In-Reply-To: <20250507131834.253823-1-colin.i.king@gmail.com>
On Wed, 07 May 2025 14:18:34 +0100, Colin Ian King wrote:
> The use of the ternary operator on rv is redundant, rv is
> either the initialized value of 0 or a negative error return
> code, so it can never be greater than zero, and hence the
> zero assignment in ternary operator is redundant. Just return
> rv instead.
>
>
> [...]
Applied, thanks!
[1/1] RDMA/siw: replace redundant ternary operator with just rv
https://git.kernel.org/rdma/rdma/c/8536666a52833d
Best regards,
--
Leon Romanovsky <leon@kernel.org>
prev parent reply other threads:[~2025-05-12 10:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 13:18 Colin Ian King
2025-05-07 14:04 ` Bernard Metzler
2025-05-12 10:20 ` Leon Romanovsky [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=174704525028.584839.4314624447518486154.b4-ty@kernel.org \
--to=leon@kernel.org \
--cc=bmt@zurich.ibm.com \
--cc=colin.i.king@gmail.com \
--cc=jgg@ziepe.ca \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.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®