Commit 736c8b52 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

inet_diag: constify raw_lookup() socket argument



Now both raw_v4_match() and raw_v6_match() accept a const socket,
raw_lookup() can do the same to clarify its role.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Reviewed-by: default avatarSimon Horman <simon.horman@corigine.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0a8c2568
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ raw_get_hashinfo(const struct inet_diag_req_v2 *r)
 * use helper to figure it out.
 */

static bool raw_lookup(struct net *net, struct sock *sk,
static bool raw_lookup(struct net *net, const struct sock *sk,
		       const struct inet_diag_req_v2 *req)
{
	struct inet_diag_req_raw *r = (void *)req;