The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Nicolas Kaiser <nikai@nikai.net>
Cc: Jaroslav Kysela <perex@perex.cz>,
	alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: Re: [alsa-devel] [PATCH] sound/usb/usx2y: simplify conditional
Date: Mon, 11 Oct 2010 14:02:50 +0200	[thread overview]
Message-ID: <s5hocb1gcnp.wl%tiwai@suse.de> (raw)
In-Reply-To: <20101005173812.5190495d@absol.kitzblitz>

At Tue, 5 Oct 2010 17:38:12 +0200,
Nicolas Kaiser wrote:
> 
> Simplify conditional: (a || (!a && b)) => (a || b)
> 
> Signed-off-by: Nicolas Kaiser <nikai@nikai.net>

Applied now.  Thanks.


Takashi


> ---
>  sound/usb/usx2y/usx2yhwdeppcm.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/usb/usx2y/usx2yhwdeppcm.c b/sound/usb/usx2y/usx2yhwdeppcm.c
> index 2a528e5..3146a81 100644
> --- a/sound/usb/usx2y/usx2yhwdeppcm.c
> +++ b/sound/usb/usx2y/usx2yhwdeppcm.c
> @@ -54,7 +54,7 @@
>  #include <linux/gfp.h>
>  #include "usbusx2yaudio.c"
>  
> -#if defined(USX2Y_NRPACKS_VARIABLE) || (!defined(USX2Y_NRPACKS_VARIABLE) &&  USX2Y_NRPACKS == 1)
> +#if defined(USX2Y_NRPACKS_VARIABLE) || USX2Y_NRPACKS == 1
>  
>  #include <sound/hwdep.h>
>  
> -- 
> 1.7.2.2
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

      reply	other threads:[~2010-10-11 12:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 15:38 [PATCH] sound/usb/usx2y: simplify conditional Nicolas Kaiser
2010-10-11 12:02 ` Takashi Iwai [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=s5hocb1gcnp.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nikai@nikai.net \
    --cc=perex@perex.cz \
    /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