Skip to content

Commit aa07f8a

Browse files
mniestrojjukkar
authored andcommitted
drivers: wifi: winc1500: remove unused send_cb and send_user_data
Both 'cb' and 'user_data' parameters for send/sendto were saved as 'send_cb' and 'send_user_data' members in socket information. None of them are actually used, so drop them. Signed-off-by: Marcin Niestroj <[email protected]>
1 parent 8f2ba92 commit aa07f8a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/wifi/winc1500/wifi_winc1500.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,8 @@ struct socket_data {
134134
struct net_context *context;
135135
net_context_connect_cb_t connect_cb;
136136
net_tcp_accept_cb_t accept_cb;
137-
net_context_send_cb_t send_cb;
138137
net_context_recv_cb_t recv_cb;
139138
void *connect_user_data;
140-
void *send_user_data;
141139
void *recv_user_data;
142140
void *accept_user_data;
143141
struct net_pkt *rx_pkt;
@@ -459,9 +457,6 @@ static int winc1500_send(struct net_pkt *pkt,
459457
return -ENOBUFS;
460458
}
461459

462-
w1500_data.socket_data[socket].send_cb = cb;
463-
w1500_data.socket_data[socket].send_user_data = user_data;
464-
465460
if (net_pkt_read(pkt, buf->data, net_pkt_get_len(pkt))) {
466461
ret = -ENOBUFS;
467462
goto out;
@@ -502,9 +497,6 @@ static int winc1500_sendto(struct net_pkt *pkt,
502497
return -ENOBUFS;
503498
}
504499

505-
w1500_data.socket_data[socket].send_cb = cb;
506-
w1500_data.socket_data[socket].send_user_data = user_data;
507-
508500
if (net_pkt_read(pkt, buf->data, net_pkt_get_len(pkt))) {
509501
ret = -ENOBUFS;
510502
goto out;

0 commit comments

Comments
 (0)