Skip to content

Commit

Permalink
X25: constify null_x25_address
Browse files Browse the repository at this point in the history
null_x25_address is only used to access the string it contains, so it can
be const.

Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JuliaLawall authored and davem330 committed Aug 3, 2017
1 parent 5a4d148 commit e9e6c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/x25/af_x25.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ DEFINE_RWLOCK(x25_list_lock);

static const struct proto_ops x25_proto_ops;

static struct x25_address null_x25_address = {" "};
static const struct x25_address null_x25_address = {" "};

#ifdef CONFIG_COMPAT
struct compat_x25_subscrip_struct {
Expand Down

0 comments on commit e9e6c23

Please sign in to comment.