Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1459417
| From | LABBE Corentin <clabbe.montjoie@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/6] crypto: sun4i-ss: fix a few signed warning |
| Date | 2016-08-10 20:30 +0200 |
| Message-ID | <s4GgF-79-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
The variable i is always checked against unsigned value and cannot be negative. This patch set it as unsigned. Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com> --- drivers/crypto/sunxi-ss/sun4i-ss-cipher.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/sunxi-ss/sun4i-ss-cipher.c b/drivers/crypto/sunxi-ss/sun4i-ss-cipher.c index 3830d7c..90efd10 100644 --- a/drivers/crypto/sunxi-ss/sun4i-ss-cipher.c +++ b/drivers/crypto/sunxi-ss/sun4i-ss-cipher.c @@ -29,7 +29,8 @@ static int sun4i_ss_opti_poll(struct ablkcipher_request *areq) u32 tx_cnt = 0; u32 spaces; u32 v; - int i, err = 0; + int err = 0; + unsigned int i; unsigned int ileft = areq->nbytes; unsigned int oleft = areq->nbytes; unsigned int todo; @@ -139,7 +140,8 @@ static int sun4i_ss_cipher_poll(struct ablkcipher_request *areq) u32 tx_cnt = 0; u32 v; u32 spaces; - int i, err = 0; + int err = 0; + unsigned int i; unsigned int ileft = areq->nbytes; unsigned int oleft = areq->nbytes; unsigned int todo; -- 2.7.3
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 1/6] crypto: sun4i-ss: fix a few signed warning LABBE Corentin <clabbe.montjoie@gmail.com> - 2016-08-10 20:30 +0200 [PATCH 3/6] crypto: sun4i-ss: clean unused ss LABBE Corentin <clabbe.montjoie@gmail.com> - 2016-08-10 20:40 +0200 [PATCH 2/6] crypto: sun4i-ss: unify update/final function LABBE Corentin <clabbe.montjoie@gmail.com> - 2016-08-10 21:10 +0200 [PATCH 6/6] crypto: sun4i-ss: fix indentation of two crypto alg LABBE Corentin <clabbe.montjoie@gmail.com> - 2016-08-10 21:10 +0200 [PATCH 4/6] crypto: sun4i-ss: fix spelling LABBE Corentin <clabbe.montjoie@gmail.com> - 2016-08-10 21:30 +0200
csiph-web