net: phonet: mark phonet_protocol as const

The phonet_protocol structs don't need to be written by anyone and
so can be marked as const.

Signed-off-by: Lin Zhang <xiaolou4617@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
此提交包含在:
Lin Zhang
2017-10-06 01:40:35 +08:00
提交者 David S. Miller
父節點 64237470dd
當前提交 548ec11470
共有 4 個檔案被更改,包括 14 行新增11 行删除

查看文件

@@ -1351,7 +1351,7 @@ static struct proto pep_proto = {
.name = "PNPIPE",
};
static struct phonet_protocol pep_pn_proto = {
static const struct phonet_protocol pep_pn_proto = {
.ops = &phonet_stream_ops,
.prot = &pep_proto,
.sock_type = SOCK_SEQPACKET,