[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190515150952.28570-1-parna.naveenkumar@gmail.com>
Date: Wed, 15 May 2019 20:39:52 +0530
From: parna.naveenkumar@...il.com
To: arnd@...db.de, gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org,
Naveen Kumar Parna <parna.naveenkumar@...il.com>
Subject: [PATCH v2 1/1] bsr: do not use assignment in if condition
From: Naveen Kumar Parna <parna.naveenkumar@...il.com>
checkpatch.pl does not like assignment in if condition
Signed-off-by: Naveen Kumar Parna <parna.naveenkumar@...il.com>
---
drivers/char/bsr.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/char/bsr.c b/drivers/char/bsr.c
index d16ba62d03a0..935d4b300340 100644
--- a/drivers/char/bsr.c
+++ b/drivers/char/bsr.c
@@ -322,7 +322,8 @@ static int __init bsr_init(void)
goto out_err_2;
}
- if ((ret = bsr_create_devs(np)) < 0) {
+ ret = bsr_create_devs(np);
+ if (ret < 0) {
np = NULL;
goto out_err_3;
}
--
2.17.1
Powered by blists - more mailing lists