mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Purnendu Kapadia <pro8linux@gmail.com>
Cc: konkers@android.com, gregkh@linuxfoundation.org,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: android: fix style issue
Date: Wed, 20 Aug 2014 08:04:07 -0700	[thread overview]
Message-ID: <1408547047.23250.27.camel@joe-AO725> (raw)
In-Reply-To: <1408544006-26673-1-git-send-email-pro8linux@gmail.com>

On Wed, 2014-08-20 at 15:13 +0100, Purnendu Kapadia wrote:
> checkpatch fix. add a line before the switch statement

Hello Purnendu.

This is a suboptimal patch description.

There is no generic style asking for a blank line
before a switch statement.

You are actually adding a blank line separating
declarations and code.

Specifying the change as a "checkpatch fix" is
also unnecessary.

A patch subject of

"[PATCH] staging: android: Add blank line after declaration"

with no patch description at all is probably good
enough.

> diff --git a/drivers/staging/android/sync.c b/drivers/staging/androchd/sync.c
[]
> @@ -705,6 +705,7 @@ static long sync_fence_ioctl(struct file *file, unsigned int cmd,
>  			     unsigned long arg)
>  {
>  	struct sync_fence *fence = file->private_data;
> +
>  	switch (cmd) {
>  	case SYNC_IOC_WAIT:
>  		return sync_fence_ioctl_wait(fence, arg);




      reply	other threads:[~2014-08-20 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-20 14:13 Purnendu Kapadia
2014-08-20 15:04 ` Joe Perches [this message]

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=1408547047.23250.27.camel@joe-AO725 \
    --to=joe@perches.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=konkers@android.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pro8linux@gmail.com \
    /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®