From: Takashi Iwai <tiwai@suse.de>
To: Himangi Saraogi <himangi774@gmail.com>
Cc: Jaroslav Kysela <perex@perex.cz>,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
julia.lawall@lip6.fr
Subject: Re: [PATCH] sound/oss/opl3: Remove typedef opl_devinfo
Date: Tue, 05 Aug 2014 14:37:17 +0200 [thread overview]
Message-ID: <s5hd2cf6rk2.wl%tiwai@suse.de> (raw)
In-Reply-To: <20140805120718.GA12767@himangi-Dell>
At Tue, 5 Aug 2014 17:37:18 +0530,
Himangi Saraogi wrote:
>
> This typedef is unnecessary and should just be removed as they are
> never used.
>
> The following Coccinelle semantic patch detects the case.
>
> @tn@
> identifier i;
> type td;
> @@
>
> -typedef
> struct i { ... }
> -td
> ;
>
> @@
> type tn.td;
> identifier tn.i;
> @@
>
> -td
> + struct i
>
> Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
> Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Applied, thanks.
Takashi
> ---
> sound/oss/opl3.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/oss/opl3.c b/sound/oss/opl3.c
> index 4709e59..607cee4 100644
> --- a/sound/oss/opl3.c
> +++ b/sound/oss/opl3.c
> @@ -52,7 +52,7 @@ struct voice_info
> int panning; /* 0xffff means not set */
> };
>
> -typedef struct opl_devinfo
> +struct opl_devinfo
> {
> int base;
> int left_io, right_io;
> @@ -73,7 +73,7 @@ typedef struct opl_devinfo
> unsigned char cmask;
>
> int is_opl4;
> -} opl_devinfo;
> +};
>
> static struct opl_devinfo *devc = NULL;
>
> --
> 1.9.1
>
1
prev parent reply other threads:[~2014-08-05 12:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-05 12:07 Himangi Saraogi
2014-08-05 12:37 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hd2cf6rk2.wl%tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=himangi774@gmail.com \
--cc=julia.lawall@lip6.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®