Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c35e72d authored by Ravi Aravamudhan's avatar Ravi Aravamudhan Committed by Matt Wagantall
Browse files

diag: Remove dead code



There are some macros and variables in the Diag driver that are
not being used. Remove all the instances of those macros and
variables.

Change-Id: I800b776f3db1356c55a51de7747a26d8581fe9bf
Signed-off-by: default avatarRavi Aravamudhan <aravamud@codeaurora.org>
parent 1f97c2f5
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -228,13 +228,6 @@
#define DIAG_CNTL_TYPE		2
#define DIAG_DCI_TYPE		3

#define APPEND_DEBUG(ch) \
do {							\
	diag_debug_buf[diag_debug_buf_idx] = ch; \
	(diag_debug_buf_idx < 1023) ? \
	(diag_debug_buf_idx++) : (diag_debug_buf_idx = 0); \
} while (0)

/* List of remote processor supported */
enum remote_procs {
	MDM = 1,
@@ -476,7 +469,6 @@ struct diagchar_dev {
	unsigned int poolsize_hdlc;
	unsigned int poolsize_dci;
	unsigned int poolsize_user;
	unsigned int debug_flag;
	/* Buffers for masks */
	struct mutex diag_cntl_mutex;
	/* Members for Sending response */
+0 −1
Original line number Diff line number Diff line
@@ -2766,7 +2766,6 @@ static int __init diagchar_init(void)

	timer_in_progress = 0;
	driver->delayed_rsp_id = 0;
	driver->debug_flag = 1;
	driver->hdlc_disabled = 0;
	driver->dci_state = DIAG_DCI_NO_ERROR;
	setup_timer(&drain_timer, drain_timer_func, 1234);
+0 −3
Original line number Diff line number Diff line
@@ -51,8 +51,6 @@

#define SMD_DRAIN_BUF_SIZE 4096

int diag_debug_buf_idx;
unsigned char diag_debug_buf[1024];
int wrap_enabled;
uint16_t wrap_count;
static struct diag_hdlc_decode_type *hdlc_decode;
@@ -2474,7 +2472,6 @@ int diagfwd_init(void)

	wrap_enabled = 0;
	wrap_count = 0;
	diag_debug_buf_idx = 0;
	driver->use_device_tree = has_device_tree();
	for (i = 0; i < DIAG_NUM_PROC; i++)
		driver->real_time_mode[i] = 1;
+0 −2
Original line number Diff line number Diff line
@@ -61,7 +61,5 @@ int diag_process_apps_pkt(unsigned char *buf, int len);
void diag_reset_smd_data(int queue);
void diag_update_pkt_buffer(unsigned char *buf, uint32_t len, int type);
int diag_process_stm_cmd(unsigned char *buf, unsigned char *dest_buf);
extern int diag_debug_buf_idx;
extern unsigned char diag_debug_buf[1024];
extern struct platform_driver msm_diag_dci_driver;
#endif