public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Staging: android: logger: Remove uneeded tabs in variable declaration
@ 2014-10-29  6:09 Tristan Lelong
  2014-10-29 16:08 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Tristan Lelong @ 2014-10-29  6:09 UTC (permalink / raw)
  To: gregkh, waydi1, dan.carpenter, viro, gerb.stralko, devel,
	linux-kernel
  Cc: Tristan Lelong

This patch removes tabs used to align variable names in declaration and assignation.
It replaces them with exactly one space.

Signed-off-by: Tristan Lelong <tristan.lelong@blunderer.org>
---
 drivers/staging/android/logger.c | 49 ++++++++++++++++++++--------------------
 1 file changed, 24 insertions(+), 25 deletions(-)

diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
index 28b93d3..ce0b41d 100644
--- a/drivers/staging/android/logger.c
+++ b/drivers/staging/android/logger.c
@@ -50,20 +50,19 @@
  * mutex 'mutex'.
  */
 struct logger_log {
-	unsigned char		*buffer;
-	struct miscdevice	misc;
-	wait_queue_head_t	wq;
-	struct list_head	readers;
-	struct mutex		mutex;
-	size_t			w_off;
-	size_t			head;
-	size_t			size;
-	struct list_head	logs;
+	unsigned char *buffer;
+	struct miscdevice misc;
+	wait_queue_head_t wq;
+	struct list_head readers;
+	struct mutex mutex;
+	size_t w_off;
+	size_t head;
+	size_t size;
+	struct list_head logs;
 };
 
 static LIST_HEAD(log_list);
 
-
 /**
  * struct logger_reader - a logging device open for reading
  * @log:	The associated log
@@ -76,11 +75,11 @@ static LIST_HEAD(log_list);
  * reference counting. The structure is protected by log->mutex.
  */
 struct logger_reader {
-	struct logger_log	*log;
-	struct list_head	list;
-	size_t			r_off;
-	bool			r_all;
-	int			r_ver;
+	struct logger_log *log;
+	struct list_head list;
+	size_t r_off;
+	bool r_all;
+	int r_ver;
 };
 
 /* logger_offset - returns index 'n' into the log via (optimized) modulus */
@@ -170,17 +169,17 @@ static ssize_t copy_header_to_user(int ver, struct logger_entry *entry,
 	struct user_logger_entry_compat v1;
 
 	if (ver < 2) {
-		v1.len      = entry->len;
-		v1.__pad    = 0;
-		v1.pid      = entry->pid;
-		v1.tid      = entry->tid;
-		v1.sec      = entry->sec;
-		v1.nsec     = entry->nsec;
-		hdr         = &v1;
-		hdr_len     = sizeof(struct user_logger_entry_compat);
+		v1.len = entry->len;
+		v1.__pad = 0;
+		v1.pid = entry->pid;
+		v1.tid = entry->tid;
+		v1.sec = entry->sec;
+		v1.nsec = entry->nsec;
+		hdr = &v1;
+		hdr_len = sizeof(struct user_logger_entry_compat);
 	} else {
-		hdr         = entry;
-		hdr_len     = sizeof(struct logger_entry);
+		hdr = entry;
+		hdr_len = sizeof(struct logger_entry);
 	}
 
 	return copy_to_user(buf, hdr, hdr_len);
-- 
2.1.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] Staging: android: logger: Remove uneeded tabs in variable declaration
  2014-10-29  6:09 [PATCH] Staging: android: logger: Remove uneeded tabs in variable declaration Tristan Lelong
@ 2014-10-29 16:08 ` Greg KH
  2014-10-29 16:52   ` Tristan Lelong
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2014-10-29 16:08 UTC (permalink / raw)
  To: Tristan Lelong
  Cc: waydi1, dan.carpenter, viro, gerb.stralko, devel, linux-kernel

On Tue, Oct 28, 2014 at 11:09:10PM -0700, Tristan Lelong wrote:
> This patch removes tabs used to align variable names in declaration and assignation.
> It replaces them with exactly one space.

Why?  This seems like a totally unneeded change, sorry.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Staging: android: logger: Remove uneeded tabs in variable declaration
  2014-10-29 16:08 ` Greg KH
@ 2014-10-29 16:52   ` Tristan Lelong
  0 siblings, 0 replies; 3+ messages in thread
From: Tristan Lelong @ 2014-10-29 16:52 UTC (permalink / raw)
  To: Greg KH; +Cc: waydi1, dan.carpenter, viro, gerb.stralko, devel, linux-kernel

On Thu, Oct 30, 2014 at 12:08:12AM +0800, Greg KH wrote:
> On Tue, Oct 28, 2014 at 11:09:10PM -0700, Tristan Lelong wrote:
> > This patch removes tabs used to align variable names in declaration and assignation.
> > It replaces them with exactly one space.
> 
> Why?  This seems like a totally unneeded change, sorry.

I thought that was a coding style issue, because of the "c-lineup-arglist-tabs-only" emacs function described in CodingStyle.
I guess I should have read the emacs documentation before assuming that both were linked.

I am sorry for the mistake.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-10-29 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29  6:09 [PATCH] Staging: android: logger: Remove uneeded tabs in variable declaration Tristan Lelong
2014-10-29 16:08 ` Greg KH
2014-10-29 16:52   ` Tristan Lelong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox