Commit 001dd86b authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman
Browse files

staging:rtl8192u: Remove typedef from enum opt_rst_type_e - Style



Remove the typedef directive from enumerated type opt_rst_type_e,
this change clears the checkpatch issue with defining new types in
the code.

This is a coding style change which should not impact runtime
code execution.

Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2c226ff1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -208,7 +208,7 @@ bool init_firmware(struct net_device *dev)
	u32			file_length = 0;
	u8			*mapped_file = NULL;
	u32			init_step = 0;
	opt_rst_type_e	rst_opt = OPT_SYSTEM_RESET;
	enum opt_rst_type_e	   rst_opt = OPT_SYSTEM_RESET;
	enum firmware_init_step_e  starting_state = FW_INIT_STEP0_BOOT;

	rt_firmware		*pfirmware = priv->pFirmware;
+2 −2
Original line number Diff line number Diff line
@@ -11,9 +11,9 @@ enum firmware_init_step_e {
	FW_INIT_STEP2_DATA = 2,
};

typedef enum _opt_rst_type {
enum opt_rst_type_e {
	OPT_SYSTEM_RESET = 0,
	OPT_FIRMWARE_RESET = 1,
} opt_rst_type_e;
};

#endif