mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 3/3] staging: android: struct sizeof coding style in logger.c
@ 2015-01-05 14:25 Guillaume Vercoutere
  2015-01-18  0:19 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Guillaume Vercoutere @ 2015-01-05 14:25 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: devel, linux-kernel, gvercoutere

Replace sizeof struct

Signed-off-by: Guillaume Vercoutere <gvercoutere@gmail.com>
---
 drivers/staging/android/logger.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
index 72b804e..7e0eab2 100644
--- a/drivers/staging/android/logger.c
+++ b/drivers/staging/android/logger.c
@@ -512,7 +512,7 @@ static int logger_open(struct inode *inode, struct file *file)
 	if (file->f_mode & FMODE_READ) {
 		struct logger_reader *reader;
 
-		reader = kmalloc(sizeof(struct logger_reader), GFP_KERNEL);
+		reader = kmalloc(sizeof(*reader), GFP_KERNEL);
 		if (!reader)
 			return -ENOMEM;
 
@@ -710,7 +710,7 @@ static int __init create_log(char *log_name, int size)
 	if (!buffer)
 		return -ENOMEM;
 
-	log = kzalloc(sizeof(struct logger_log), GFP_KERNEL);
+	log = kzalloc(sizeof(*log), GFP_KERNEL);
 	if (!log) {
 		ret = -ENOMEM;
 		goto out_free_buffer;
-- 
1.7.10.4


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

* Re: [PATCH 3/3] staging: android: struct sizeof coding style in logger.c
  2015-01-05 14:25 [PATCH 3/3] staging: android: struct sizeof coding style in logger.c Guillaume Vercoutere
@ 2015-01-18  0:19 ` Greg Kroah-Hartman
  0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2015-01-18  0:19 UTC (permalink / raw)
  To: Guillaume Vercoutere; +Cc: devel, linux-kernel

On Mon, Jan 05, 2015 at 03:25:37PM +0100, Guillaume Vercoutere wrote:
> Replace sizeof struct
> 
> Signed-off-by: Guillaume Vercoutere <gvercoutere@gmail.com>

Doesn't apply as I didn't take patch 2, please fix up and resend.

thanks,

greg k-h

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

end of thread, other threads:[~2015-01-18  0:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-05 14:25 [PATCH 3/3] staging: android: struct sizeof coding style in logger.c Guillaume Vercoutere
2015-01-18  0:19 ` Greg Kroah-Hartman

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®