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-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 18 Jun 2018 12:29:39 +0200
From:   Roman Sommer <roman.sommer@....de>
To:     unlisted-recipients:; (no To-header on input)
Cc:     Roman Sommer <roman.sommer@....de>, linux-kernel@...cs.fau.de,
        Daniel Graefe <daniel.graefe@....de>,
        Jaroslav Kysela <perex@...ex.cz>,
        Takashi Iwai <tiwai@...e.com>,
        Takashi Sakamoto <o-takashi@...amocchi.jp>,
        Hans P. Möller Ebner <hmoller@...cl>,
        Kees Cook <keescook@...omium.org>,
        Kate Stewart <kstewart@...uxfoundation.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Fabián Inostroza <soulsonceonfire@...il.com>,
        Bhumika Goyal <bhumirks@...il.com>,
        Philippe Ombredanne <pombredanne@...b.com>,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        alsa-devel@...a-project.org, linux-kernel@...r.kernel.org
Subject: [PATCH 3/3] sound/line6: add newline after declarations

CC: Jaroslav Kysela <perex@...ex.cz>
CC: Takashi Iwai <tiwai@...e.com>
CC: Takashi Sakamoto <o-takashi@...amocchi.jp>
CC: "Hans P. Möller Ebner" <hmoller@...cl>
CC: Kees Cook <keescook@...omium.org>
CC: Kate Stewart <kstewart@...uxfoundation.org>
CC: Thomas Gleixner <tglx@...utronix.de>
CC: "Fabián Inostroza" <soulsonceonfire@...il.com>
CC: Bhumika Goyal <bhumirks@...il.com>
CC: Philippe Ombredanne <pombredanne@...b.com>
CC: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
CC: alsa-devel@...a-project.org
CC: linux-kernel@...r.kernel.org

This patch adds newlines after variable declarations in sound/usb/line6.

Signed-off-by: Roman Sommer <roman.sommer@....de>
Signed-off-by: Daniel Graefe <daniel.graefe@....de>
---
 sound/usb/line6/driver.h   | 1 +
 sound/usb/line6/playback.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/sound/usb/line6/driver.h b/sound/usb/line6/driver.h
index 1dfb6de..4dff70c 100644
--- a/sound/usb/line6/driver.h
+++ b/sound/usb/line6/driver.h
@@ -174,6 +174,7 @@ struct usb_line6 {
 		struct mutex read_lock;
 		wait_queue_head_t wait_queue;
 		unsigned int active:1;
+
 		STRUCT_KFIFO_REC_2(LINE6_BUFSIZE_LISTEN * LINE6_RAW_MESSAGES_MAXCOUNT)
 			fifo;
 	} messages;
diff --git a/sound/usb/line6/playback.c b/sound/usb/line6/playback.c
index 674502c..1e16a5c 100644
--- a/sound/usb/line6/playback.c
+++ b/sound/usb/line6/playback.c
@@ -39,6 +39,7 @@ static void change_volume(struct urb *urb_out, int volume[],
 		for (; p < buf_end; ++p) {
 			short pv = le16_to_cpu(*p);
 			int val = (pv * volume[chn & 1]) >> 8;
+
 			pv = clamp(val, -0x8000, 0x7fff);
 			*p = cpu_to_le16(pv);
 			++chn;
@@ -126,6 +127,7 @@ static void add_monitor_signal(struct urb *urb_out, unsigned char *signal,
 			short pov = le16_to_cpu(*po);
 			short piv = le16_to_cpu(*pi);
 			int val = pov + ((piv * volume) >> 8);
+
 			pov = clamp(val, -0x8000, 0x7fff);
 			*po = cpu_to_le16(pov);
 		}
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ