diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-17 09:23:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-20 04:16:41 +0300 |
commit | a44d9e72100f7044ac46e4e6dc475f5b4097830f (patch) | |
tree | 1bf043e2d02b8e00b1d54952b3e3799b1be79efa /net/can | |
parent | 3021ad529950d07e0408d65d0f1df00454c1d223 (diff) | |
download | linux-a44d9e72100f7044ac46e4e6dc475f5b4097830f.tar.xz |
net: make ->{get,set}sockopt in proto_ops optional
Just check for a NULL method instead of wiring up
sock_no_{get,set}sockopt.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can')
-rw-r--r-- | net/can/bcm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/can/bcm.c b/net/can/bcm.c index c96fa0f33db3..d14ea12affb1 100644 --- a/net/can/bcm.c +++ b/net/can/bcm.c @@ -1648,8 +1648,6 @@ static const struct proto_ops bcm_ops = { .gettstamp = sock_gettstamp, .listen = sock_no_listen, .shutdown = sock_no_shutdown, - .setsockopt = sock_no_setsockopt, - .getsockopt = sock_no_getsockopt, .sendmsg = bcm_sendmsg, .recvmsg = bcm_recvmsg, .mmap = sock_no_mmap, |