[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1434647667-6807-1-git-send-email-nick.diego@gmail.com>
Date: Thu, 18 Jun 2015 13:14:27 -0400
From: Nick Yamane <nick.diego@...il.com>
To: linux-kernel@...r.kernel.org
Cc: trivial@...nel.org, Nick Yamane <nick.diego@...il.com>
Subject: [PATCH 1/1] kernel: Fix some coding styles issues in ksysfs.c
- Removed a trailing space from the description header
- Added missing spaces in some binary operator expressions
- Removed unnecessary space from a pointer variable declaration
Signed-off-by: Nick Yamane <nick.diego@...il.com>
---
kernel/ksysfs.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c
index 6683ccef9fff..4e4a49c747db 100644
--- a/kernel/ksysfs.c
+++ b/kernel/ksysfs.c
@@ -1,9 +1,9 @@
/*
* kernel/ksysfs.c - sysfs attributes in /sys/kernel, which
- * are not related to any other subsystem
+ * are not related to any other subsystem
*
* Copyright (C) 2004 Kay Sievers <kay.sievers@...y.org>
- *
+ *
* This file is release under the GPLv2
*
*/
@@ -48,12 +48,12 @@ static ssize_t uevent_helper_store(struct kobject *kobj,
struct kobj_attribute *attr,
const char *buf, size_t count)
{
- if (count+1 > UEVENT_HELPER_PATH_LEN)
+ if (count + 1 > UEVENT_HELPER_PATH_LEN)
return -ENOENT;
memcpy(uevent_helper, buf, count);
uevent_helper[count] = '\0';
- if (count && uevent_helper[count-1] == '\n')
- uevent_helper[count-1] = '\0';
+ if (count && uevent_helper[count - 1] == '\n')
+ uevent_helper[count - 1] = '\0';
return count;
}
KERNEL_ATTR_RW(uevent_helper);
@@ -187,7 +187,7 @@ static struct bin_attribute notes_attr = {
struct kobject *kernel_kobj;
EXPORT_SYMBOL_GPL(kernel_kobj);
-static struct attribute * kernel_attrs[] = {
+static struct attribute *kernel_attrs[] = {
&fscaps_attr.attr,
&uevent_seqnum_attr.attr,
#ifdef CONFIG_UEVENT_HELPER
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists