staging: silicom/bypasslib/bp_ioctl.h: Fix erroneous global variable definitions

Originally, this header was defining two new typedefs, CMND_TYPE and
CMND_TYPE_SD, following this type of declaration:

typedef enum {
	...
} CMND_TYPE;

A previous commit (785086556a) tried to
fix warnings that were pointed out by checkpatch.pl, concerning not
adding new typedefs. But this commit only removed the 'typedef' keyword,
thus transforming both the typedefs into two the definition of global
variables. For example:

enum {
	...
} CMND_TYPE;

As noticed by the Sparse tool, this patch removes those erroneous global
variable definitions, and just leaves anonymous enum type definitions:

enum {
	...
};

Signed-off-by: Joel Porquet <joel@porquet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Joel Porquet 2014-05-26 18:07:38 +02:00 committed by Greg Kroah-Hartman
parent a66369a590
commit c1ad28a399

View File

@ -101,7 +101,7 @@ enum {
SET_BP_WAIT_AT_PWUP, SET_BP_WAIT_AT_PWUP,
GET_BP_HW_RESET, GET_BP_HW_RESET,
SET_BP_HW_RESET, SET_BP_HW_RESET,
} CMND_TYPE; };
enum { enum {
IF_SCAN_SD, IF_SCAN_SD,
@ -154,7 +154,7 @@ enum {
GET_BP_HW_RESET_SD, GET_BP_HW_RESET_SD,
SET_BP_HW_RESET_SD, SET_BP_HW_RESET_SD,
} CMND_TYPE_SD; };
#define SIOCGIFBYPASS (SIOCDEVPRIVATE+10) #define SIOCGIFBYPASS (SIOCDEVPRIVATE+10)