Skip to content

Commit

Permalink
l2tp: add identifier name in function pointer prototype
Browse files Browse the repository at this point in the history
Reported by checkpatch:

        "WARNING: function definition argument 'struct sock *'
         should also have an identifier name"

Add an identifier name to help document the prototype.

Signed-off-by: Tom Parkin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
tomparkin authored and davem330 committed Jul 23, 2020
1 parent 0864e33 commit bef04d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/l2tp/l2tp_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ struct l2tp_tunnel {
struct net *l2tp_net; /* the net we belong to */

refcount_t ref_count;
void (*old_sk_destruct)(struct sock *);
void (*old_sk_destruct)(struct sock *sk);
struct sock *sock; /* parent socket */
int fd; /* parent fd, if tunnel socket was created
* by userspace
Expand Down

0 comments on commit bef04d1

Please sign in to comment.