staging: android: struct sizeof coding style in logger.c
PATCH 3/3 staging: android: struct sizeof coding style in logger.c
Replace sizeof struct
Signed-off-by Guillaume Vercoutere <[email protected]>
--- drivers/staging/android/logger.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/android/logger.c +2 -2
@@ -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;
Signature · 1 line
1.7.10.4
Greg Kroah-Hartman
maintainerQuoted 3 lines · Guillaume Vercoutere
Replace sizeof struct
Signed-off-by Guillaume Vercoutere <[email protected]>
Doesn't apply as I didn't take patch 2, please fix up and resend.
thanks,
greg k-h