tty: nozomi: remove unused debugging DUMP()
DUMP()'s only use is commented out. Remove the macro completely along with this unused use. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Link: https://lore.kernel.org/r/20231121092258.9334-13-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7588b08203
commit
2bf93a48cc
|
@ -65,24 +65,8 @@ do { \
|
|||
#define DBG3(args...) DBG_(0x04, ##args)
|
||||
#define DBG4(args...) DBG_(0x08, ##args)
|
||||
|
||||
/* TODO: rewrite to optimize macros... */
|
||||
|
||||
#define TMP_BUF_MAX 256
|
||||
|
||||
#define DUMP(buf__, len__) \
|
||||
do { \
|
||||
char tbuf[TMP_BUF_MAX] = {0}; \
|
||||
if (len__ > 1) { \
|
||||
u32 data_len = min_t(u32, len__, TMP_BUF_MAX); \
|
||||
strscpy(tbuf, buf__, data_len); \
|
||||
if (tbuf[data_len - 2] == '\r') \
|
||||
tbuf[data_len - 2] = 'r'; \
|
||||
DBG1("SENDING: '%s' (%d+n)", tbuf, len__); \
|
||||
} else { \
|
||||
DBG1("SENDING: '%s' (%d)", tbuf, len__); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
/* Defines */
|
||||
#define NOZOMI_NAME "nozomi"
|
||||
#define NOZOMI_NAME_TTY "nozomi_tty"
|
||||
|
@ -754,8 +738,6 @@ static int send_data(enum port_type index, struct nozomi *dc)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* DUMP(buf, size); */
|
||||
|
||||
/* Write length + data */
|
||||
write_mem32(addr, (u32 *) &size, 4);
|
||||
write_mem32(addr + 4, (u32 *) dc->send_buf, size);
|
||||
|
|
Loading…
Reference in New Issue