lkml.org 
[lkml]   [2015]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] kernel: Fix some coding styles issues in ksysfs.c
Date
- 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


\
 
 \ /
  Last update: 2015-06-18 19:41    [W:0.039 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site