Skip to content

Commit f80f60f

Browse files
thugheskartben
authored andcommitted
drivers: modem: Remove unused function
Building with clang warns: drivers/modem/modem_cmd_handler.c:102:31: error: unused function 'read_rx_allocator' [-Werror,-Wunused-function] static inline struct net_buf *read_rx_allocator(k_timeout_t timeout, ^ Signed-off-by: Tom Hughes <[email protected]>
1 parent 19ec804 commit f80f60f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/modem/modem_cmd_handler.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ static bool starts_with(struct net_buf *buf, const char *str)
9999
* Cmd Handler Functions
100100
*/
101101

102-
static inline struct net_buf *read_rx_allocator(k_timeout_t timeout,
103-
void *user_data)
104-
{
105-
return net_buf_alloc((struct net_buf_pool *)user_data, timeout);
106-
}
107-
108102
/* return scanned length for params */
109103
static int parse_params(struct modem_cmd_handler_data *data, size_t match_len,
110104
const struct modem_cmd *cmd,

0 commit comments

Comments
 (0)