On Wed, Jul 12, 2017 at 12:15 AM, Gustavo A. R. Silva
wrote:
> This structure is only used to copy into another structure, so declare
> it as const.
>
> This issue was detected using Coccinelle and the following semantic patch:
>
> @r disable optional_qualifier@
> identifier i;
> position p;
> @@
On 07/13/2017 12:41 PM, Thor Thayer wrote:
On 07/11/2017 05:15 PM, Gustavo A. R. Silva wrote:
This structure is only used to copy into another structure, so declare
it as const.
Signed-off-by: Gustavo A. R. Silva
---
drivers/gpio/gpio-altera-a10sr.c | 2 +-
1 file changed, 1 insertion
On 07/11/2017 05:15 PM, Gustavo A. R. Silva wrote:
This structure is only used to copy into another structure, so declare
it as const.
Signed-off-by: Gustavo A. R. Silva
---
drivers/gpio/gpio-altera-a10sr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/
This structure is only used to copy into another structure, so declare
it as const.
This issue was detected using Coccinelle and the following semantic patch:
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct gpio_chip i@p = { ... };
@ok@
identifier r.i;
expression e;
pos
4 matches
Mail list logo