mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nick Yamane <nick.diego@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: trivial@kernel.org, Nick Yamane <nick.diego@gmail.com>
Subject: [PATCH 1/1] kernel: Fix some coding styles issues in ksysfs.c
Date: Thu, 18 Jun 2015 13:14:27 -0400	[thread overview]
Message-ID: <1434647667-6807-1-git-send-email-nick.diego@gmail.com> (raw)

- 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


                 reply	other threads:[~2015-06-18 17:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1434647667-6807-1-git-send-email-nick.diego@gmail.com \
    --to=nick.diego@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®