[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5hwp4cvhko.wl-tiwai@suse.de>
Date: Tue, 03 Oct 2017 09:03:35 +0200
From: Takashi Iwai <tiwai@...e.de>
To: Jérémy Lefaure <jeremy.lefaure@....epita.fr>
Cc: "Jaroslav Kysela" <perex@...ex.cz>, <alsa-devel@...a-project.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 01/18] sound: use ARRAY_SIZE
On Sun, 01 Oct 2017 21:30:39 +0200,
Jérémy Lefaure wrote:
>
> Using the ARRAY_SIZE macro improves the readability of the code.
>
> Found with Coccinelle with the following semantic patch:
> @r depends on (org || report)@
> type T;
> T[] E;
> position p;
> @@
> (
> (sizeof(E)@p /sizeof(*E))
> |
> (sizeof(E)@p /sizeof(E[...]))
> |
> (sizeof(E)@p /sizeof(T))
> )
>
> Signed-off-by: Jérémy Lefaure <jeremy.lefaure@....epita.fr>
> ---
> sound/oss/ad1848.c | 7 ++++---
> sound/pci/hda/patch_ca0132.c | 8 +++-----
> 2 files changed, 7 insertions(+), 8 deletions(-)
sound/oss is already dead and will be removed likely in the next
release. So just keep it untouched.
thanks,
Takashi
Powered by blists - more mailing lists