Skip to contentSkip to conversation

iio: trigger: Add a blank line after declarations

PATCH Applied Roberta Dobrescu 3 participants 3 messages Dec 16, 2014 – Dec 26, 2014 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: trigger: Add a blank line after declarations

This patch fixes the following checkpatch.pl warning:
WARNING: Missing a blank line after declarations

---
 drivers/iio/trigger/iio-trig-sysfs.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/iio/trigger/iio-trig-sysfs.c +2 -0
index 254c7e9..3dfab2b 100644
@@ -135,6 +135,7 @@ static int iio_sysfs_trigger_probe(int id)
 	struct iio_sysfs_trig *t;
 	int ret;
 	bool foundit = false;
+
 	mutex_lock(&iio_sysfs_trig_list_mut);
 	list_for_each_entry(t, &iio_sysfs_trig_list, l)
 		if (id == t->id) {
@@ -185,6 +186,7 @@ static int iio_sysfs_trigger_remove(int id)
 {
 	bool foundit = false;
 	struct iio_sysfs_trig *t;
+
 	mutex_lock(&iio_sysfs_trig_list_mut);
 	list_for_each_entry(t, &iio_sysfs_trig_list, l)
 		if (id == t->id) {
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Roberta Dobrescu

This patch fixes the following checkpatch.pl warning:
WARNING: Missing a blank line after declarations

Quoted 31 lines
---
 drivers/iio/trigger/iio-trig-sysfs.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/iio/trigger/iio-trig-sysfs.c +2 -1
index 254c7e9..3dfab2b 100644
@@ -135,6 +135,7 @@ static int iio_sysfs_trigger_probe(int id)
        struct iio_sysfs_trig *t;
        int ret;
        bool foundit = false;
+
        mutex_lock(&iio_sysfs_trig_list_mut);
        list_for_each_entry(t, &iio_sysfs_trig_list, l)
                if (id == t->id) {
@@ -185,6 +186,7 @@ static int iio_sysfs_trigger_remove(int id)
 {
        bool foundit = false;
        struct iio_sysfs_trig *t;
+
        mutex_lock(&iio_sysfs_trig_list_mut);
        list_for_each_entry(t, &iio_sysfs_trig_list, l)
                if (id == t->id) {
--

1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer Applied
#2 lore raw
Quoted 8 lines · Daniel Baluta
Quoted 4 lines · Roberta Dobrescu

This patch fixes the following checkpatch.pl warning:
WARNING: Missing a blank line after declarations

Applied to the togreg branch of iio.git - initially pushed out as testing for the autobuilders to play with it.

Jonathan

Quoted 37 lines
Quoted 28 lines
---
 drivers/iio/trigger/iio-trig-sysfs.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/iio/trigger/iio-trig-sysfs.c +2 -1
index 254c7e9..3dfab2b 100644
@@ -135,6 +135,7 @@ static int iio_sysfs_trigger_probe(int id)
        struct iio_sysfs_trig *t;
        int ret;
        bool foundit = false;
+
        mutex_lock(&iio_sysfs_trig_list_mut);
        list_for_each_entry(t, &iio_sysfs_trig_list, l)
                if (id == t->id) {
@@ -185,6 +186,7 @@ static int iio_sysfs_trigger_remove(int id)
 {
        bool foundit = false;
        struct iio_sysfs_trig *t;
+
        mutex_lock(&iio_sysfs_trig_list_mut);
        list_for_each_entry(t, &iio_sysfs_trig_list, l)
                if (id == t->id) {
--

1.9.1

Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html