summaryrefslogtreecommitdiffstats
path: root/sound/oss
diff options
context:
space:
mode:
authorHimangi Saraogi <himangi774@gmail.com>2014-08-05 17:37:18 +0530
committerTakashi Iwai <tiwai@suse.de>2014-08-05 20:07:59 +0200
commit8b0276d281c9c9e62669736703c87385436a1265 (patch)
tree9d52117860b41322e9f8f7a657a8339e0fbb68fd /sound/oss
parent30225ed5ca9e8f713fe8e92859f698c5e82a429c (diff)
downloadlinux-8b0276d281c9c9e62669736703c87385436a1265.tar.bz2
sound/oss/opl3: Remove typedef opl_devinfo
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> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss')
-rw-r--r--sound/oss/opl3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/oss/opl3.c b/sound/oss/opl3.c
index 4709e592e2cc..607cee4d545e 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;