Skip to contentSkip to conversation

staging: gdm724x: Remove wrapper function

PATCH New Amitoj Kaur Chawla 1 participant 1 message Oct 29, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: gdm724x: Remove wrapper function

Remove wrapper function that can be replaced by a single line of code.

---
 drivers/staging/gdm724x/gdm_lte.c   | 2 +-
 drivers/staging/gdm724x/netlink_k.c | 5 -----
 drivers/staging/gdm724x/netlink_k.h | 1 -
 3 files changed, 1 insertion(+), 7 deletions(-)
drivers/staging/gdm724x/gdm_lte.c +1 -1
index a8d2cff..1f13ab1 100644
@@ -555,7 +555,7 @@ int gdm_lte_event_init(void)
 void gdm_lte_event_exit(void)
 {
 	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;
 	}
 }
drivers/staging/gdm724x/netlink_k.c +0 -5
index 59a1830..a825652 100644
@@ -107,11 +107,6 @@ struct sock *netlink_init(int unit,
 	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)
 {
 	static u32 seq;
drivers/staging/gdm724x/netlink_k.h +0 -1
index 589486d..7cf979b 100644
@@ -19,7 +19,6 @@
 
 struct sock *netlink_init(int unit,
 	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);
 
 #endif /* _NETLINK_K_H_ */
Signature · 1 line
1.9.1