lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1480774184-4655-1-git-send-email-cvs268@gmail.com>
Date:   Sat,  3 Dec 2016 19:39:44 +0530
From:   ChinmayVS <cvs268@...il.com>
To:     gregkh@...uxfoundation.org
Cc:     linux-kernel@...r.kernel.org, ChinmayVS <cvs268@...il.com>
Subject: [PATCH] uio: uio_cif: Fix style issues

- Update header-file inclusion path.
- Fix indentation of switch and case.
- Remove extra space in function calls.

Signed-off-by: ChinmayVS <cvs268@...il.com>
---
 drivers/uio/uio_cif.c | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/drivers/uio/uio_cif.c b/drivers/uio/uio_cif.c
index 30f533c..4acad98 100644
--- a/drivers/uio/uio_cif.c
+++ b/drivers/uio/uio_cif.c
@@ -14,7 +14,7 @@
 #include <linux/slab.h>
 #include <linux/uio_driver.h>
 
-#include <asm/io.h>
+#include <linux/io.h>
 
 #define PLX9030_INTCSR		0x4C
 #define INTSCR_INT1_ENABLE	0x01
@@ -67,16 +67,20 @@ static int hilscher_pci_probe(struct pci_dev *dev,
 	info->mem[1].addr = pci_resource_start(dev, 2);
 	info->mem[1].size = pci_resource_len(dev, 2);
 	info->mem[1].memtype = UIO_MEM_PHYS;
+
 	switch (id->subdevice) {
-		case CIF_SUBDEVICE_PROFIBUS:
-			info->name = "CIF_Profibus";
-			break;
-		case CIF_SUBDEVICE_DEVICENET:
-			info->name = "CIF_Devicenet";
-			break;
-		default:
-			info->name = "CIF_???";
+	case CIF_SUBDEVICE_PROFIBUS:
+		info->name = "CIF_Profibus";
+		break;
+
+	case CIF_SUBDEVICE_DEVICENET:
+		info->name = "CIF_Devicenet";
+		break;
+
+	default:
+		info->name = "CIF_???";
 	}
+
 	info->version = "0.0.1";
 	info->irq = dev->irq;
 	info->irq_flags = IRQF_SHARED;
@@ -95,7 +99,7 @@ static int hilscher_pci_probe(struct pci_dev *dev,
 out_disable:
 	pci_disable_device(dev);
 out_free:
-	kfree (info);
+	kfree(info);
 	return -ENODEV;
 }
 
@@ -108,7 +112,7 @@ static void hilscher_pci_remove(struct pci_dev *dev)
 	pci_disable_device(dev);
 	iounmap(info->mem[0].internal_addr);
 
-	kfree (info);
+	kfree(info);
 }
 
 static struct pci_device_id hilscher_pci_ids[] = {
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ