* Re: [PATCH 1/2] STAGING: COMEDI: Remove unnecessary typecast of c90 int constant
[not found] <BLU437-SMTP58939005C5CAECB257AD70FEDE0@phx.gbl>
@ 2016-02-01 11:16 ` Ian Abbott
0 siblings, 0 replies; only message in thread
From: Ian Abbott @ 2016-02-01 11:16 UTC (permalink / raw)
To: Pablo G. Gallardo, greg; +Cc: hsweeten, linux-kernel
On 01/02/16 01:06, Pablo G. Gallardo wrote:
> This patch removes unnecessary typecast of c90 int constant.
>
> Signed-off-by: Pablo G. Gallardo <gallardo_pablo@hotmail.com>
> ---
> drivers/staging/comedi/comedi.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h
> index 83bd309..2645081 100644
> --- a/drivers/staging/comedi/comedi.h
> +++ b/drivers/staging/comedi/comedi.h
> @@ -516,7 +516,7 @@ struct comedi_bufinfo {
> #define UNIT_mA 1
> #define UNIT_none 2
>
> -#define COMEDI_MIN_SPEED ((unsigned int)0xffffffff)
> +#define COMEDI_MIN_SPEED (0xffffffff)
Those parentheses are unnecessary as well. I'd probably add a 'u'
suffix to the constant to avoid any possibility of it being
misinterpreted as a negative value by a pre-C90 version of the C
language, though that's probably not worth worrying about.
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-01 11:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <BLU437-SMTP58939005C5CAECB257AD70FEDE0@phx.gbl>
2016-02-01 11:16 ` [PATCH 1/2] STAGING: COMEDI: Remove unnecessary typecast of c90 int constant Ian Abbott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox