kernel: Fix some coding styles issues in ksysfs.c
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 <[email protected]>
--- kernel/ksysfs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
kernel/ksysfs.c +6 -6
@@ -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 <[email protected]> -* +* * 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
Signature · 1 line
2.1.4