[PATCH 03/30] staging: unisys: change bool to int variable found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Erik Arfvidson <erik.arfvidson@xxxxxxxxxx>

this patch changes variable 'found' from bool to int

Signed-off-by: Erik Arfvidson <erik.arfvidson@xxxxxxxxxx>
Signed-off-by: Benjamin Romer <benjamin.romer@xxxxxxxxxx>
---
 drivers/staging/unisys/virtpci/virtpci.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/unisys/virtpci/virtpci.c b/drivers/staging/unisys/virtpci/virtpci.c
index 8fdfd6f..d2d8151 100644
--- a/drivers/staging/unisys/virtpci/virtpci.c
+++ b/drivers/staging/unisys/virtpci/virtpci.c
@@ -1074,7 +1074,7 @@ static int virtpci_device_serverdown(struct device *parentbus,
 				     unsigned char macaddr[])
 {
 	int pausethisone = 0;
-	bool found = false;
+	int found = 0;
 	struct virtpci_dev *tmpvpcidev, *prevvpcidev;
 	struct virtpci_driver *vpcidriver;
 	unsigned long flags;
@@ -1113,7 +1113,7 @@ static int virtpci_device_serverdown(struct device *parentbus,
 		if (!pausethisone)
 			continue;
 
-		found = true;
+		found = 1;
 		vpcidriver = tmpvpcidev->mydriver;
 		rc = vpcidriver->suspend(tmpvpcidev, 0);
 	}
@@ -1133,7 +1133,7 @@ static int virtpci_device_serverup(struct device *parentbus,
 				   unsigned char macaddr[])
 {
 	int resumethisone = 0;
-	bool found = false;
+	int found = 0;
 	struct virtpci_dev *tmpvpcidev, *prevvpcidev;
 	struct virtpci_driver *vpcidriver;
 	unsigned long flags;
@@ -1171,7 +1171,7 @@ static int virtpci_device_serverup(struct device *parentbus,
 		if (!resumethisone)
 			continue;
 
-		found = true;
+		found = 1;
 		vpcidriver = tmpvpcidev->mydriver;
 		/* This should be done at BUS resume time, but an
 		* existing problem prevents us from ever getting a bus
-- 
2.1.0

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux