Skip to content

Commit 2ae23f7

Browse files
jerome-pouillerdanieldegrasse
authored andcommitted
drivers: wifi: siwx91x: Do not set unused values
We avoid to assign unused values during declaration. Hence, the reader knows that every value assigned are meaningful. It also allow compile to raise true warning if a value is used uninitialized. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
1 parent 0b8f7d8 commit 2ae23f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/wifi/siwx91x/siwx91x_wifi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ static int siwx91x_send(const struct device *dev, struct net_pkt *pkt)
217217
{
218218
sl_wifi_interface_t interface = sl_wifi_get_default_interface();
219219
size_t pkt_len = net_pkt_get_len(pkt);
220-
struct net_buf *buf = NULL;
220+
struct net_buf *buf;
221221
int ret;
222222

223223
if (net_pkt_get_len(pkt) > _NET_ETH_MAX_FRAME_SIZE) {

0 commit comments

Comments
 (0)