From: Kevin Hao <[email protected]>

The SDK commit 20932f1f83d3 ("fec_ecat: add fec native driver for raw
packet proto") has changed the prototype of packet_do_bind(), but
forgot to delete the unused variables due to this change.

Signed-off-by: Kevin Hao <[email protected]>
---
 net/packet/af_packet.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 85d644589b7c..0c4c71d40ba6 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -3285,7 +3285,6 @@ static int packet_do_bind(struct socket *sock, const char 
*name, int ifindex,
 static int packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr,
                            int addr_len)
 {
-       struct sock *sk = sock->sk;
        char name[sizeof(uaddr->sa_data_min) + 1];
 
        /*
@@ -3306,7 +3305,6 @@ static int packet_bind_spkt(struct socket *sock, struct 
sockaddr *uaddr,
 static int packet_bind(struct socket *sock, struct sockaddr *uaddr, int 
addr_len)
 {
        struct sockaddr_ll *sll = (struct sockaddr_ll *)uaddr;
-       struct sock *sk = sock->sk;
 
        /*
         *      Check legality
-- 
2.44.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13738): 
https://lists.yoctoproject.org/g/linux-yocto/message/13738
Mute This Topic: https://lists.yoctoproject.org/mt/105175661/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to