From: Himangi Saraogi Date: Tue, 5 Aug 2014 12:07:18 +0000 (+0530) Subject: sound/oss/opl3: Remove typedef opl_devinfo X-Git-Tag: firefly_0821_release~176^2~3158^2~35 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8b0276d281c9c9e62669736703c87385436a1265;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Julia Lawall Signed-off-by: Takashi Iwai --- 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;