Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14b7d95f authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

llc: Make function pointer arrays const



It's better when function pointer arrays aren't modifiable.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b95bf1e0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ struct llc_conn_state_trans {
	llc_conn_ev_t	   ev;
	u8		   next_state;
	llc_conn_ev_qfyr_t *ev_qualifiers;
	llc_conn_action_t  *ev_actions;
	const llc_conn_action_t  *ev_actions;
};

struct llc_conn_state {
+235 −235

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -454,7 +454,7 @@ static int llc_exec_conn_trans_actions(struct sock *sk,
				       struct sk_buff *skb)
{
	int rc = 0;
	llc_conn_action_t *next_action;
	const llc_conn_action_t *next_action;

	for (next_action = trans->ev_actions;
	     next_action && *next_action; next_action++) {