Skip to content

Commit

Permalink
sound/oss/opl3: Remove typedef opl_devinfo
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Himangi Saraogi authored and Takashi Iwai committed Aug 5, 2014
1 parent 30225ed commit 8b0276d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/oss/opl3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -73,7 +73,7 @@ typedef struct opl_devinfo
unsigned char cmask;

int is_opl4;
} opl_devinfo;
};

static struct opl_devinfo *devc = NULL;

Expand Down

0 comments on commit 8b0276d

Please sign in to comment.