lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 06 Feb 2015 15:56:15 +0100
From:	Takashi Iwai <tiwai@...e.de>
To:	Chris Rorvick <chris@...vick.com>
Cc:	alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
	Stefan Hajnoczi <stefanha@...il.com>
Subject: Re: [PATCH 1/4] ALSA: line6: Add toneport_has_source_select()

At Fri,  6 Feb 2015 08:51:09 -0600,
Chris Rorvick wrote:
> 
> Add a predicate for testing if the device supports source selection to
> make the conditional logic around this a bit cleaner.
> 
> Signed-off-by: Chris Rorvick <chris@...vick.com>
> ---
>  sound/usb/line6/toneport.c | 32 ++++++++++++++++----------------
>  1 file changed, 16 insertions(+), 16 deletions(-)
> 
> diff --git a/sound/usb/line6/toneport.c b/sound/usb/line6/toneport.c
> index b107cf4..de56180a 100644
> --- a/sound/usb/line6/toneport.c
> +++ b/sound/usb/line6/toneport.c
> @@ -343,6 +343,20 @@ static void toneport_remove_leds(struct usb_line6_toneport *toneport)
>  	}
>  }
>  
> +static bool toneport_has_source_select(struct usb_line6_toneport *toneport)
> +{
> +	switch (toneport->type) {
> +	case LINE6_TONEPORT_UX1:
> +	case LINE6_TONEPORT_UX2:
> +	case LINE6_PODSTUDIO_UX1:
> +	case LINE6_PODSTUDIO_UX2:
> +		return 1;
> +
> +	default:
> +		return 0;

Please use true and false.


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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ