From: Ingo Oeser <ioe-lkml@rameria.de>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Bob Gilligan <gilligan@vyatta.com>,
linux-kernel@vger.kernel.org,
Linux Crypto Mailing List <linux-crypto@vger.kernel.org>
Subject: [PATCH] crypto: cleanup: Use max() in blkcipher_get_spot() to state the intention.
Date: Tue, 11 Sep 2007 21:53:24 +0200 [thread overview]
Message-ID: <200709112153.25959.ioe-lkml@rameria.de> (raw)
In-Reply-To: <20070911084058.GA4469@gondor.apana.org.au>
[PATCH] crypto: cleanup: Use max() in blkcipher_get_spot() to state the intention.
Signed-off-by: Ingo Oeser <ioe-lkml@rameria.de>
---
Hi Herbert,
here is the requested patch against Linus' latest tree.
It at least compiles.
Best Regards
Ingo Oeser
crypto/blkcipher.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c
index d8f8ec3..1c99d92 100644
--- a/crypto/blkcipher.c
+++ b/crypto/blkcipher.c
@@ -65,7 +65,7 @@ static inline void blkcipher_unmap_dst(struct blkcipher_walk *walk)
static inline u8 *blkcipher_get_spot(u8 *start, unsigned int len)
{
u8 *end_page = (u8 *)(((unsigned long)(start + len - 1)) & PAGE_MASK);
- return start > end_page ? start : end_page;
+ return max(start, end_page);
}
static inline unsigned int blkcipher_done_slow(struct crypto_blkcipher *tfm,
--
1.5.2.5
next prev parent reply other threads:[~2007-09-11 19:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-08 0:09 [PATCH] crypto: blkcipher_get_spot() handling of buffer at end of page Bob Gilligan
2007-09-08 4:14 ` Herbert Xu
2007-09-10 7:58 ` Herbert Xu
2007-09-10 19:46 ` Ingo Oeser
2007-09-11 8:40 ` Herbert Xu
2007-09-11 19:53 ` Ingo Oeser [this message]
2007-09-19 11:16 ` [PATCH] crypto: cleanup: Use max() in blkcipher_get_spot() to state the intention Herbert Xu
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=200709112153.25959.ioe-lkml@rameria.de \
--to=ioe-lkml@rameria.de \
--cc=gilligan@vyatta.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@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®