* [PATCH] Crypto/chtls: Fixed boolinit.cocci warning
@ 2020-02-28 6:09 Vinay Kumar Yadav
2020-03-06 1:51 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Vinay Kumar Yadav @ 2020-02-28 6:09 UTC (permalink / raw)
To: herbert, davem, linux-crypto; +Cc: Vinay Kumar Yadav
crypto: chtls - Fixed boolinit.cocci warning
Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
---
drivers/crypto/chelsio/chtls/chtls_io.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/crypto/chelsio/chtls/chtls_io.c b/drivers/crypto/chelsio/chtls/chtls_io.c
index 781fe7c55a27..bd47119f4fda 100644
--- a/drivers/crypto/chelsio/chtls/chtls_io.c
+++ b/drivers/crypto/chelsio/chtls/chtls_io.c
@@ -1081,10 +1081,10 @@ int chtls_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
pg_size = page_size(page);
if (off < pg_size &&
skb_can_coalesce(skb, i, page, off)) {
- merge = 1;
+ merge = true;
goto copy;
}
- merge = 0;
+ merge = false;
if (i == (is_tls_tx(csk) ? (MAX_SKB_FRAGS - 1) :
MAX_SKB_FRAGS))
goto new_buf;
--
2.24.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Crypto/chtls: Fixed boolinit.cocci warning
2020-02-28 6:09 [PATCH] Crypto/chtls: Fixed boolinit.cocci warning Vinay Kumar Yadav
@ 2020-03-06 1:51 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2020-03-06 1:51 UTC (permalink / raw)
To: Vinay Kumar Yadav; +Cc: davem, linux-crypto
On Fri, Feb 28, 2020 at 11:39:40AM +0530, Vinay Kumar Yadav wrote:
> crypto: chtls - Fixed boolinit.cocci warning
>
> Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
> ---
> drivers/crypto/chelsio/chtls/chtls_io.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-06 1:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-28 6:09 [PATCH] Crypto/chtls: Fixed boolinit.cocci warning Vinay Kumar Yadav
2020-03-06 1:51 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).