* [PATCH] staging:ccree Fix dont use assignment in if condition
@ 2017-09-21 6:37 Janani Sankara Babu
2017-09-22 8:55 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Janani Sankara Babu @ 2017-09-21 6:37 UTC (permalink / raw)
To: gregkh
Cc: gilad, linux-crypto, driverdev-devel, devel, linux-kernel,
Janani Sankara Babu
This patch solves the following error shown by checkpatch script
ERROR: do not use assignment in if condition
Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
---
drivers/staging/ccree/ssi_hash.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c
index ae8f36a..08eaa56 100644
--- a/drivers/staging/ccree/ssi_hash.c
+++ b/drivers/staging/ccree/ssi_hash.c
@@ -601,8 +601,8 @@ static int ssi_hash_update(struct ahash_req_ctx *state,
/* no real updates required */
return 0;
}
-
- if (unlikely(rc = ssi_buffer_mgr_map_hash_request_update(ctx->drvdata, state, src, nbytes, block_size))) {
+ rc = ssi_buffer_mgr_map_hash_request_update(ctx->drvdata, state, src, nbytes, block_size);
+ if (unlikely(rc)) {
if (rc == 1) {
SSI_LOG_DEBUG(" data size not require HW update %x\n",
nbytes);
@@ -1403,8 +1403,8 @@ static int ssi_mac_update(struct ahash_request *req)
}
state->xcbc_count++;
-
- if (unlikely(rc = ssi_buffer_mgr_map_hash_request_update(ctx->drvdata, state, req->src, req->nbytes, block_size))) {
+ rc = ssi_buffer_mgr_map_hash_request_update(ctx->drvdata, state, req->src, req->nbytes, block_size);
+ if (unlikely(rc)) {
if (rc == 1) {
SSI_LOG_DEBUG(" data size not require HW update %x\n",
req->nbytes);
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging:ccree Fix dont use assignment in if condition
2017-09-21 6:37 [PATCH] staging:ccree Fix dont use assignment in if condition Janani Sankara Babu
@ 2017-09-22 8:55 ` Greg KH
[not found] ` <CACHTOGqqZCzNDoxvnXfwZhMBg9WOgynx85eaBydz_wUz=-bQWA@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2017-09-22 8:55 UTC (permalink / raw)
To: Janani Sankara Babu; +Cc: devel, driverdev-devel, linux-kernel, linux-crypto
On Thu, Sep 21, 2017 at 12:07:04PM +0530, Janani Sankara Babu wrote:
> This patch solves the following error shown by checkpatch script
> ERROR: do not use assignment in if condition
>
> Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
> ---
> drivers/staging/ccree/ssi_hash.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
You sent me 5 patches for the same driver, yet no way for me to
determine what the order of the patches are. Please resend as a
numbered patch series so I get it right.
Remember, make it obvious what a maintainer is supposed to do...
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging:ccree Fix dont use assignment in if condition
[not found] ` <CACHTOGqqZCzNDoxvnXfwZhMBg9WOgynx85eaBydz_wUz=-bQWA@mail.gmail.com>
@ 2017-09-22 10:59 ` Greg KH
0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2017-09-22 10:59 UTC (permalink / raw)
To: Janani Sankara Babu; +Cc: devel, driverdev-devel, linux-kernel, linux-crypto
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
A: No.
Q: Should I include quotations after my reply?
http://daringfireball.net/2007/07/on_top
On Fri, Sep 22, 2017 at 03:52:45PM +0530, Janani Sankara Babu wrote:
> Hi Mr. Greg,
>
> The patches that I have sent are independent of each other. There is
> nothing from one patch that will affect the other one and vice verse. I have
> double checked the same.
And how am I supposed to know that? :)
> Kindly let me know if I have to do the ordering of patches.
Please do, they are long-gone from my queue now.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-09-22 10:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-21 6:37 [PATCH] staging:ccree Fix dont use assignment in if condition Janani Sankara Babu
2017-09-22 8:55 ` Greg KH
[not found] ` <CACHTOGqqZCzNDoxvnXfwZhMBg9WOgynx85eaBydz_wUz=-bQWA@mail.gmail.com>
2017-09-22 10:59 ` Greg KH
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).