Re: [PATCH] staging: android: logger..c fixed a brace coding styleissue

From: Greg KH
Date: Mon Jul 29 2013 - 14:20:54 EST


On Sun, Jul 28, 2013 at 04:47:51PM +0300, abbasjasim wrote:
> fixed a coding style issue.
>
> Signed-off-by: Abbas J. Mohammed <abbasjasim.AJ@xxxxxxxxx>
> ---
> drivers/staging/android/logger.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
> index ffc2d04..3d5180a 100644
> --- a/drivers/staging/android/logger.c
> +++ b/drivers/staging/android/logger.c
> @@ -81,8 +81,9 @@ static inline struct logger_log *file_get_log(struct file *file)
> if (file->f_mode & FMODE_READ) {
> struct logger_reader *reader = file->private_data;
> return reader->log;
> - } else
> + } else {
> return file->private_data;
> + }

I think the existing code is just fine, no need for this patch.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/