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: <20171114200357.4628-1-chasemetzger15@gmail.com>
Date:   Tue, 14 Nov 2017 12:03:51 -0800
From:   Chase Metzger <chasemetzger15@...il.com>
To:     gregkh@...uxfoundation.org
Cc:     Chase Metzger <chasemetzger15@...il.com>,
        Marcus Wolf <linux@...f-Entwicklungen.de>,
        Joseph Wright <rjosephwright@...il.com>,
        Colin Ian King <colin.king@...onical.com>,
        Haneen Mohammed <hamohammed.sa@...il.com>,
        Elia Geretto <elia.f.geretto@...il.com>,
        Srishti Sharma <srishtishar@...il.com>,
        Xiangyang Zhang <xyz.sun.ok@...il.com>,
        Derek Robson <robsonde@...il.com>,
        Cihangir Akturk <cakturk@...il.com>,
        devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] staging: pi433: pi433_if.c: fix if/else if and brace coding style issues

Fix if/else if and braces in function DIO0_irq_handler to comply with
the kernel coding style.

Signed-off-by: Chase Metzger <chasemetzger15@...il.com>
---
 drivers/staging/pi433/pi433_if.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index d946838450d4..dee70c47629c 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -133,19 +133,14 @@ static irqreturn_t DIO0_irq_handler(int irq, void *dev_id)
 {
 	struct pi433_device *device = dev_id;
 
-	if      (device->irq_state[DIO0] == DIO_PacketSent)
-	{
+	if      (device->irq_state[DIO0] == DIO_PacketSent) {
 		device->free_in_fifo = FIFO_SIZE;
 		dev_dbg(device->dev, "DIO0 irq: Packet sent\n");
 		wake_up_interruptible(&device->fifo_wait_queue);
-	}
-	else if (device->irq_state[DIO0] == DIO_Rssi_DIO0)
-	{
+	} else if (device->irq_state[DIO0] == DIO_Rssi_DIO0) {
 		dev_dbg(device->dev, "DIO0 irq: RSSI level over threshold\n");
 		wake_up_interruptible(&device->rx_wait_queue);
-	}
-	else if (device->irq_state[DIO0] == DIO_PayloadReady)
-	{
+	} else if (device->irq_state[DIO0] == DIO_PayloadReady) {
 		dev_dbg(device->dev, "DIO0 irq: PayloadReady\n");
 		device->free_in_fifo = 0;
 		wake_up_interruptible(&device->fifo_wait_queue);
-- 
2.11.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ