Commit ca3fde19 authored by Amitoj Kaur Chawla's avatar Amitoj Kaur Chawla Committed by Greg Kroah-Hartman

staging: gdm724x: Remove wrapper function

Remove wrapper function that can be replaced by a single line of code.
Signed-off-by: default avatarAmitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b4129f2f
...@@ -555,7 +555,7 @@ int gdm_lte_event_init(void) ...@@ -555,7 +555,7 @@ int gdm_lte_event_init(void)
void gdm_lte_event_exit(void) void gdm_lte_event_exit(void)
{ {
if (lte_event.sock && --lte_event.ref_cnt == 0) { if (lte_event.sock && --lte_event.ref_cnt == 0) {
netlink_exit(lte_event.sock); sock_release(lte_event.sock->sk_socket);
lte_event.sock = NULL; lte_event.sock = NULL;
} }
} }
......
...@@ -107,11 +107,6 @@ struct sock *netlink_init(int unit, ...@@ -107,11 +107,6 @@ struct sock *netlink_init(int unit,
return sock; return sock;
} }
void netlink_exit(struct sock *sock)
{
sock_release(sock->sk_socket);
}
int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len) int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len)
{ {
static u32 seq; static u32 seq;
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
struct sock *netlink_init(int unit, struct sock *netlink_init(int unit,
void (*cb)(struct net_device *dev, u16 type, void *msg, int len)); void (*cb)(struct net_device *dev, u16 type, void *msg, int len));
void netlink_exit(struct sock *sock);
int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len); int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len);
#endif /* _NETLINK_K_H_ */ #endif /* _NETLINK_K_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment