[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1513234104.27409.49.camel@perches.com>
Date: Wed, 13 Dec 2017 22:48:24 -0800
From: Joe Perches <joe@...ches.com>
To: Aniruddha Shastri <aniruddha.shastri@...il.com>
Cc: Ian Abbott <abbotti@....co.uk>,
H Hartley Sweeten <hsweeten@...ionengravers.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Saber Rezvani <irsaber@...il.com>,
Matthew Giassa <matthew@...ssa.net>,
Christopher MÃ¥rtensson <cribalik@...il.com>,
Karthik Nayak <karthik.188@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] staging: comedi: ni_*: Fix style warnings.
On Thu, 2017-12-14 at 00:27 -0600, Aniruddha Shastri wrote:
> Three of these warnings are now line-too-long warnings. I think these
> warnings are preferable to the ones listed below. The longest line
> is only 87 chars wide, which is reasonable.
[]
> diff --git a/drivers/staging/comedi/drivers/ni_670x.c b/drivers/staging/comedi/drivers/ni_670x.c
[]
> @@ -209,7 +209,7 @@ static int ni_670x_auto_attach(struct comedi_device *dev,
> const struct comedi_lrange **range_table_list;
>
> range_table_list = kmalloc_array(32,
> - sizeof(struct comedi_lrange *),
> + sizeof(const struct comedi_lrange *),
Adding const to a sizeof is unnecessary
Powered by blists - more mailing lists