mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 02:12:00 -04:00
Staging: silicom: remove typedef for dev_desc_t
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c014185968
commit
11c920b0e0
@@ -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"},
|
||||
|
||||
Reference in New Issue
Block a user