Tag: 8524b001a21747c7df5c5a8404f0fbf45661ea44

irttp: Use kmemdup rather than duplicating its implementation

Author: Thomas Meyer <thomas@m3y3r.de> The semantic patch that makes this change is available in scripts/coccinelle/api/memdup.cocci. Signed-off-by: Thomas Meyer Signed-off-by: David S. Miller — net/irda/irttp.c | 4 +— 1 file changed, 1 insertion(+), 3 deletions(-)   diff –git a/net/irda/irttp.c b/net/irda/irttp.c index 32e3bb0..5c93f29 100644 — a/net/irda/irttp.c +++ b/net/irda/irttp.c @@ -1461,14 +1461,12 @@ struct tsap_cb *irttp_dup(struct tsap_cb *orig, …

Continue reading