All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Madhumitha Prabakaran <madhumithabiw@gmail.com>
Cc: forest@alittletooquiet.net, outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 3/5] Staging: vt6655: Fix warning about preprocessor conditionals
Date: Tue, 5 Mar 2019 08:52:34 +0100	[thread overview]
Message-ID: <20190305075234.GD6956@kroah.com> (raw)
In-Reply-To: <478765abb9c231a9eda7ccf35e243017f074bae7.1551745071.git.madhumithabiw@gmail.com>

On Mon, Mar 04, 2019 at 06:24:01PM -0600, Madhumitha Prabakaran wrote:
> Fix the warning by removing code between #if and #endif, as coding style
> say the compiler will constant-fold the conditional away and include or
> exclude the block of code as with an endif.
> 
> Signed-off-by: Madhumitha Prabakaran <madhumithabiw@gmail.com>
> ---
>  drivers/staging/vt6655/power.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/staging/vt6655/power.c b/drivers/staging/vt6655/power.c
> index d6c581b31569..c2a7c120a94d 100644
> --- a/drivers/staging/vt6655/power.c
> +++ b/drivers/staging/vt6655/power.c
> @@ -64,7 +64,6 @@ PSvEnablePowerSaving(
>  	} else {
>  		/* set ATIM Window */
>  #if 0 /* TODO atim window */
> -		MACvWriteATIMW(priv->PortOffset, pMgmt->wCurrATIMWindow);
>  #endif
>  	}
>  	/* Set AutoSleep */

When you removed this line, you then ended up with:
	#if 0
	#endif

which does not make much sense :)

As this is a "TODO" item, I would just leave this alone for now.
Hopefully someone will fix this correctly in the future.

thanks,

greg k-h


  reply	other threads:[~2019-03-05  7:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-05  0:23 [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Madhumitha Prabakaran
2019-03-05  0:23 ` [PATCH 1/5] Staging: vt6655: Fix line over 80 characters Madhumitha Prabakaran
2019-03-05  0:24 ` [PATCH 2/5] " Madhumitha Prabakaran
2019-03-05  0:24 ` [PATCH 3/5] Staging: vt6655: Fix warning about preprocessor conditionals Madhumitha Prabakaran
2019-03-05  7:52   ` Greg KH [this message]
2019-03-05  0:24 ` [PATCH 4/5] Staging: vt6655: Fix spelling mistake Madhumitha Prabakaran
2019-03-05  0:24 ` [PATCH 5/5] Staging: vt6655: Fix space around binary operator Madhumitha Prabakaran
2019-03-05  7:53 ` [Outreachy kernel] [PATCH 0/5] Staging: vt6655: Fix checkpatch.pl issues Greg KH

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=20190305075234.GD6956@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=forest@alittletooquiet.net \
    --cc=madhumithabiw@gmail.com \
    --cc=outreachy-kernel@googlegroups.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.