* [PATCH 1/1] kernel: Fix some coding styles issues in ksysfs.c
@ 2015-06-18 17:14 Nick Yamane
0 siblings, 0 replies; only message in thread
From: Nick Yamane @ 2015-06-18 17:14 UTC (permalink / raw)
To: linux-kernel; +Cc: trivial, Nick Yamane
- 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@gmail.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@vrfy.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-06-18 17:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-18 17:14 [PATCH 1/1] kernel: Fix some coding styles issues in ksysfs.c Nick Yamane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®