]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: silicom: remove typedef for dev_desc_t
authorChad Williamson <chad@dahc.us>
Tue, 25 Jun 2013 23:59:24 +0000 (18:59 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 21:40:17 +0000 (14:40 -0700)
Remove the dev_desc_t typedef for the dev_desc struct in bpctl_mod.c,
resolving a checkpatch.pl warning. In fact, we can use an anonymous
struct, since it's only used in the single dev_desc array of device
descriptions, whose definition follows immediately.

Signed-off-by: Chad Williamson <chad@dahc.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/silicom/bpctl_mod.c

index 91c864cf4d30f2723d22b2057627cea338aa9b79..32bc530b2cfde6ae1854284977abc8e1a32460d9 100644 (file)
@@ -5981,11 +5981,9 @@ struct bpmod_info {
 
 };
 
-typedef struct _dev_desc {
+struct {
        char *name;
-} dev_desc_t;
-
-dev_desc_t dev_desc[] = {
+} dev_desc[] = {
        {"Silicom Bypass PXG2BPFI-SD series adapter"},
        {"Silicom Bypass PXG2BPFIL-SD series adapter"},
        {"Silicom Bypass PXG2BPFILX-SD series adapter"},