All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: unisys: Modify boolean assignment
@ 2016-02-10  8:24 Janani Ravichandran
  2016-02-10  7:26 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 8+ messages in thread
From: Janani Ravichandran @ 2016-02-10  8:24 UTC (permalink / raw)
  To: outreachy-kernel

Boolean variables should be assigned true/false rather than 1/0.
This patch makes such a correction.

Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com>
---
 drivers/staging/unisys/visorhba/visorhba_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/unisys/visorhba/visorhba_main.c b/drivers/staging/unisys/visorhba/visorhba_main.c
index 5a78409..e93bb1d 100644
--- a/drivers/staging/unisys/visorhba/visorhba_main.c
+++ b/drivers/staging/unisys/visorhba/visorhba_main.c
@@ -1062,7 +1062,7 @@ static int visorhba_resume(struct visor_device *dev,
 		return -EINVAL;
 
 	if (devdata->serverdown && !devdata->serverchangingstate)
-		devdata->serverchangingstate = 1;
+		devdata->serverchangingstate = true;
 
 	visor_thread_start(&devdata->threadinfo, process_incoming_rsps,
 			   devdata, "vhba_incming");
-- 
2.5.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-02-22 13:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-10  8:24 [PATCH] staging: unisys: Modify boolean assignment Janani Ravichandran
2016-02-10  7:26 ` [Outreachy kernel] " Julia Lawall
2016-02-10  7:45   ` Janani Ravichandran
2016-02-10  8:54     ` Julia Lawall
2016-02-17 17:59       ` Jes Sorensen
     [not found]         ` <20160217180323.GA23677@kroah.com>
2016-02-17 18:10           ` Jes Sorensen
2016-02-20 23:30             ` Greg KH
2016-02-22 13:07               ` Jes Sorensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.